copyWith method
AsyncBind<T>
copyWith({
- Future<
T> factoryFunction(- Injector i
- bool? isSingleton,
- bool? isLazy,
- bool? export,
- bool? isScoped,
- bool? alwaysSerialized,
- void onDispose(
- Future<
T> value
- Future<
- dynamic selector(
- Future<
T> value
- Future<
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,
);
}