exchange method
Widget
exchange(
- List<
VoidCallback> disposers, - GetStateUpdate setState,
- Widget builder(),
- BuildContext context,
Implementation
Widget exchange(
List<VoidCallback> disposers,
GetStateUpdate setState,
Widget Function(BuildContext) builder,
BuildContext context,
) {
_remove = disposers;
_setter = setState;
final result = builder(context);
_remove = null;
_setter = null;
return result;
}