copyWith method
BindContract<T>
copyWith({})
Implementation
@override
BindContract<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,
export: export ?? this.export,
isLazy: isLazy ?? this.isLazy,
isScoped: isScoped ?? this.isScoped,
isSingleton: isSingleton ?? this.isSingleton,
);
}