of static method

Implementation

static AtomicThemeData of(BuildContext context) {
  final theme = context.dependOnInheritedWidgetOfExactType<AtomicTheme>();
  if (theme == null) {
    throw Exception('AtomicTheme not found in widget tree');
  }
  return theme.data;
}