callWidgetInit static method

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

Implementation

static void callWidgetInit(BuilderEx widget, State state) {
  try {
    widget.init?.call(state);
  } catch (e, s) {
    Journal.d('[$state] ${widget.name} showCallBack 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} >>>>> initState');
    return true;
  }());
}