LogViewerTheme.of constructor

LogViewerTheme.of(
  1. BuildContext context
)

Theme from the context: the extension from ThemeData.extensions, or LogViewerTheme.fallback for the current ColorScheme.

Implementation

factory LogViewerTheme.of(BuildContext context) {
  final theme = Theme.of(context);
  return theme.extension<LogViewerTheme>() ?? LogViewerTheme.fallback(theme.colorScheme);
}