create<T extends Object> static method

  1. @factory
IScope<T> create<T extends Object>({
  1. required Create<T> create,
  2. Update<T>? update,
  3. Dispose<T>? dispose,
  4. TransitionBuilder? builder,
  5. Widget? child,
  6. UpdateShouldNotify<T>? shouldNotify,
  7. Key? key,
})

Creates a value, then expose it to its descendants.

The value will be disposed of when Scope is removed from the Element tree.

Implementation

@factory
static IScope<T> create<T extends Object>({
  required Create<T> create,
  Update<T>? update,
  Dispose<T>? dispose,
  TransitionBuilder? builder,
  Widget? child,
  UpdateShouldNotify<T>? shouldNotify,
  Key? key,
}) =>
    CreateScope<T>(
      create,
      update,
      dispose,
      builder,
      child,
      shouldNotify,
      key,
    );