instance property

WidgetsBinding instance
override

The current WidgetsBinding, if one has been created.

If you need the binding to be constructed before calling runApp, you can ensure a Widget binding has been constructed by calling the WidgetsFlutterBinding.ensureInitialized() function.

Implementation

static WidgetsBinding get instance => _instance;