callWidgetDispose static method

void callWidgetDispose(
  1. BuilderEx widget,
  2. State<StatefulWidget> state
)

Implementation

static void callWidgetDispose(BuilderEx widget, State state) {
  try {
    widget.dispose?.call(state);
  } catch (e, s) {
    Journal.d('[$state] ${widget.name} dismissCallBack exception: ${e.toString()}');
    Journal.d(e is Error ? e.stackTrace?.toString() ?? 'No stackTrace' : 'No stackTrace');
    Journal.d(s.toString());
  }
  assert(() {
    Journal.d('[$state] ${widget.name} >>>>> dispose');
    return true;
  }());
}