inverted property

Color? inverted

Implementation

Color? get inverted {
  final self = this;
  if (self is CupertinoDynamicColor) {
    return CupertinoDynamicColor(
      color: self.darkColor,
      darkColor: self.color,
      darkElevatedColor: self.elevatedColor,
      darkHighContrastColor: self.highContrastColor,
      darkHighContrastElevatedColor: self.highContrastElevatedColor,
      elevatedColor: self.darkElevatedColor,
      highContrastColor: self.darkHighContrastColor,
      highContrastElevatedColor: self.darkHighContrastElevatedColor,
    );
  } else {
    return self;
  }
}