copyWith method
Clone the current BlocProvider with a new child Widget.
Implementation
BlocProvider<T> copyWith(Widget child) {
return BlocProvider<T>.builder(
key: key,
creator: creator,
builder: (_context, _bag) => child,
);
}
Clone the current BlocProvider with a new child Widget.
BlocProvider<T> copyWith(Widget child) {
return BlocProvider<T>.builder(
key: key,
creator: creator,
builder: (_context, _bag) => child,
);
}