copyWith method

  1. @override
AsyncBind<T> copyWith({
  1. Future<T> factoryFunction(
    1. Injector i
    )?,
  2. bool? isSingleton,
  3. bool? isLazy,
  4. bool? export,
  5. bool? isScoped,
  6. bool? alwaysSerialized,
  7. void onDispose(
    1. Future<T> value
    )?,
  8. dynamic selector(
    1. Future<T> value
    )?,
})
override

Implementation

@override
AsyncBind<T> copyWith(
    {Future<T> Function(Injector i)? factoryFunction,
    bool? isSingleton,
    bool? isLazy,
    bool? export,
    bool? isScoped,
    bool? alwaysSerialized,
    void Function(Future<T> value)? onDispose,
    Function(Future<T> value)? selector}) {
  return AsyncBind(
    factoryFunction ?? this.factoryFunction,
    export: export ?? this.export,
  );
}