blob: ccf6712ac8b973d95456919fe7fc168d68ccf996 [file] [log] [blame] [view]
# Intent constructor
*[<Null safety>](https://dart.dev/null-safety)*
Intent({required String? action, String? handler})
<p>Creates an <a href="../../package-fuchsia_modular_module/Intent-class.md">Intent</a> that is used to start
a module which can handle the specified action.
If an explicit handler is not set the modular framework
will search for an appropriate handler for the given action.</p>
## Implementation
```dart
Intent({
required String? action,
String? handler,
}) : super(
action: action,
handler: handler,
parameters: [],
);
```