put<T extends FxController> static method

T put<T extends FxController>(
  1. T controller, {
  2. String? tag,
  3. bool save = true,
})

Implementation

static T put<T extends FxController>(T controller,
    {String? tag, bool save = true}) {
  tag ??= controller.getTag();
  _history.add(tag);
  _controllers[tag] = controller;
  controller.save = controller.save && save;

  return controller;
}