ArnaDynamicColor constructor

const ArnaDynamicColor({
  1. String? debugLabel,
  2. required Color color,
  3. required Color darkColor,
  4. required Color highContrastColor,
  5. required Color darkHighContrastColor,
})

Creates an adaptive Color that changes its effective color based on the BuildContext given. The default effective color is color.

All the colors must not be null.

Implementation

const ArnaDynamicColor({
  String? debugLabel,
  required Color color,
  required Color darkColor,
  required Color highContrastColor,
  required Color darkHighContrastColor,
}) : this._(
        color,
        color,
        darkColor,
        highContrastColor,
        darkHighContrastColor,
        null,
        debugLabel,
      );