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 StatelessWidget

Provides 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.

ParameterTypeKindDefault
controllerHealthImportController<TType>required named
childWidgetrequired named
keyKey?named

Properties

HealthImportProvider.controller

final HealthImportController<TType> controller

The health import controller used by descendants.

HealthImportProvider.child

final Widget child

The widgets that need health import state.

Methods

HealthImportProvider.of

HealthImportController<TType> of<TType>(BuildContext context)

Reads the nearest controller and rebuilds when it changes.

ParameterTypeKindDefault
contextBuildContextpositional

Returns HealthImportController<TType>.

HealthImportProvider.maybeOf

HealthImportController<TType>? maybeOf<TType>(BuildContext context)

Reads the nearest controller, if this context has one.

ParameterTypeKindDefault
contextBuildContextpositional

Returns HealthImportController<TType>?.

Last updated on

On this page