init method

  1. @mustCallSuper
Future<void> init()

Initializes the configuration.

If the application is in test mode, it sets the mock method call handler. After initialization, the configuration is marked as initialized and not disposed.

Implementation

@mustCallSuper
Future<void> init() async {
  if (kIsTest) {
    setMockMethodCallHandler();
  }

  _initialized = true;
  _disposed = false;
}