init static method

Future<bool> init([
  1. String container = 'GetStorage'
])

Start the storage drive. It's important to use await before calling this API, or side effects will occur.

Implementation

static Future<bool> init([String container = 'GetStorage']) {
  WidgetsFlutterBinding.ensureInitialized();
  return GetStorage(container).initStorage;
}