instance property

WidgetsBinding get instance

Returns the instance of the widgets binding.

This method ensures that the widgets binding is initialized and returns the instance.

Implementation

static WidgetsBinding get instance =>
    WidgetsFlutterBinding.ensureInitialized();