theme property

Implementation

NUIColorTheme get theme {
  final isDark = isDarkTheme();
  if(isDark){
    assert(_theme?.darkTheme != null);
    _theme?.darkTheme.setColorCodes(_theme!.colorCodes);
    return _theme!.darkTheme;
  }

  assert(_theme?.lightTheme != null);
  _theme?.lightTheme.setColorCodes(_theme!.colorCodes);
  return _theme!.lightTheme;
}