init static method

void init(
  1. BuildContext context, {
  2. List<MonitorActionWidget>? actions,
  3. bool forceInit = false,
})

Implementation

static void init(BuildContext context,
    {List<MonitorActionWidget>? actions, bool forceInit=false}) async {
  if (forceInit) {
    _enable = forceInit;
  }
  if (_enable) {
    Monitor.instance.addActions(actions);
  } else {
    _actions = actions;
  }
}