resetAll static method

void resetAll(
  1. BuildContext context, {
  2. bool? clearHistory,
})

Reset all controller models. All models will be set to their initial values provided in the MomentumController.init implementation.

Implementation

static void resetAll(
  BuildContext context, {
  bool? clearHistory,
}) {
  var m = _getMomentumInstance(context)!;
  if (m._onResetAll != null) {
    m._onResetAll!(context, _resetAll);
  } else {
    _resetAll(context, clearHistory: clearHistory);
  }
}