init static method

void init(
  1. String key
)

Implementation

static void init(String key) async {
  spKey = 'MyStorage';
  _storage = GetStorage(spKey);
}