ThemeModifier constructor

const ThemeModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. required ThemeData data,
})

Applies the given theme data to child.

The data and child arguments must not be null.

Implementation

const ThemeModifier({
  super.key,
  super.child,
  super.modifierKey,
  required this.data,
});