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