toMap method

Map<String, dynamic> toMap()

Serialise the entire theme to a map for export / persistence.

Implementation

Map<String, dynamic> toMap() => {
  'name': info.name,
  'displayName': info.displayName,
  'isDark': info.isDark,
  'description': info.description,
  'colors': colors.toMap(),
  'textTheme': textTheme.toMap(),
  'componentTheme': componentTheme.toMap(),
  'syntaxTheme': syntaxTheme.toMap(),
};