init static method

Future<SharedPreferences?> init()

Implementation

static Future<SharedPreferences?> init() async {
  if (_spf == null) {
    _spf = await SharedPreferences.getInstance();
  }
  return _spf;
}