create method Null safety

  1. @override
BlocProvider<T> create(
  1. A value,
  2. T builder(
    1. ProviderReference ref,
    2. A param
    ),
  3. String? name
)
override

Creates the provider for a given parameter.

Implementation

@override
BlocProvider<T> create(
  A value,
  T Function(ProviderReference ref, A param) builder,
  String? name,
) {
  return BlocProvider((ref) => builder(ref, value), name: name);
}