Health import provider
Generated reference for ovok_flutter: health import provider.
- Stable unknown
- Release candidate since 0.1.0-rc.6
- Development since 0.1.0-dev.32+1028d01
HealthImportProvider
class HealthImportProvider<TType> extends StatelessWidgetProvides a health import controller to descendant widgets.
The application owns controller and must dispose it when no longer used.
Constructors
HealthImportProvider.new
HealthImportProvider<TType>({
required HealthImportController<TType> controller,
required Widget child,
Key? key,
})Creates a scope for controller and child.
| Parameter | Type | Kind | Default |
|---|---|---|---|
controller | HealthImportController<TType> | required named | |
child | Widget | required named | |
key | Key? | named |
Properties
HealthImportProvider.controller
final HealthImportController<TType> controllerThe health import controller used by descendants.
HealthImportProvider.child
final Widget childThe widgets that need health import state.
Methods
HealthImportProvider.of
HealthImportController<TType> of<TType>(BuildContext context)Reads the nearest controller and rebuilds when it changes.
| Parameter | Type | Kind | Default |
|---|---|---|---|
context | BuildContext | positional |
Returns HealthImportController<TType>.
HealthImportProvider.maybeOf
HealthImportController<TType>? maybeOf<TType>(BuildContext context)Reads the nearest controller, if this context has one.
| Parameter | Type | Kind | Default |
|---|---|---|---|
context | BuildContext | positional |
Returns HealthImportController<TType>?.
Last updated on