ensureInitialized method

WidgetsBinding ensureInitialized ()
override

Similar to WidgetsFlutterBinding.ensureInitialized.

Returns an instance of the E2EWidgetsFlutterBinding, creating and initializing it if necessary.

Implementation

static WidgetsBinding ensureInitialized() {
  if (WidgetsBinding.instance == null) {
    E2EWidgetsFlutterBinding();
  }
  assert(WidgetsBinding.instance is E2EWidgetsFlutterBinding);
  return WidgetsBinding.instance;
}