getCurrentAccountId static method

Future<String> getCurrentAccountId()

Implementation

static Future<String> getCurrentAccountId() async {
  if (!await storage.containsKey(key: 'account_id') || !await storage.containsKey(key: 'token')) return '0';
  return (await storage.read(key: 'account_id'))!;
}