exchange method

Widget exchange(
  1. HashSet<VoidCallback> disposers,
  2. GetStateUpdate setState,
  3. Widget builder(
    1. BuildContext
    ),
  4. BuildContext context
)

Implementation

Widget exchange(
  HashSet<VoidCallback> disposers,
//    StateSetter setState, //<old>
  GetStateUpdate setState,
  Widget Function(BuildContext) builder,
  BuildContext context,
) {
  _remove = disposers;
  _setter = setState;
  final result = builder(context);
  _remove = null;
  _setter = null;
  return result;
}