getMetaData static method

Future<Map<String, dynamic>?> getMetaData()

Implementation

static Future<Map<String, dynamic>?> getMetaData() async {
  final String metaData = await getString(notificationKey);
  if (metaData.isEmpty) {
    print('No Metadata found');
    return null;
  }
  saveMetadata('');
  return jsonDecode(metaData);
}