importTheme method

void importTheme(
  1. Map<String, dynamic> map
)

Import a theme from a previously exported map and activate it.

Implementation

void importTheme(Map<String, dynamic> map) {
  final theme = NeomageTheme.fromMap(map);
  _customThemes[theme.info.name] = theme;
  _currentTheme = theme;
  _controller.add(_currentTheme);
}