Configuration.fromComponents constructor

Configuration.fromComponents({
  1. Components? light,
  2. Components? dark,
})

Creates a Configuration from Components instances for light and dark modes.

Implementation

factory fromComponents({
  Components? light,
  Components? dark,
}) =>
    Configuration(
      light: light?.components ?? const Iterable<WildnessBase<dynamic>>.empty(),
      dark: dark?.components ?? const Iterable<WildnessBase<dynamic>>.empty(),
    );