exchange method

Widget exchange(
  1. List<VoidCallback> disposers,
  2. GetStateUpdate setState,
  3. Widget builder(
    1. BuildContext
    ),
  4. 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;
}