YaruTheme constructor

const YaruTheme({
  1. Key? key,
  2. ValueWidgetBuilder<YaruThemeData>? builder,
  3. Widget? child,
  4. YaruThemeData data = const YaruThemeData(),
  5. @visibleForTesting Platform? platform,
  6. @visibleForTesting YaruSettings? settings,
})

Applies the given theme data to child.

The data and child arguments must not be null.

Implementation

const YaruTheme({
  super.key,
  this.builder,
  this.child,
  this.data = const YaruThemeData(),
  @visibleForTesting Platform? platform,
  @visibleForTesting YaruSettings? settings,
})  : assert(
        builder != null || child != null,
        'Either builder or child must be provided',
      ),
      _platform = platform ?? const LocalPlatform(),
      _settings = settings;