updateThemeData method

Future<bool> updateThemeData(
  1. AppTheme themeData
)

Implementation

Future<bool> updateThemeData(AppTheme themeData) async {
  AtKey atKey = getAtkey();
  try {
    var result =
        await atClientManager.atClient.put(atKey, themeData.encoded());
    return result;
  } catch (e) {
    _logger.severe('error in updating theme data: ${e.toString()}');
    return false;
  }
}