debugShortDescription property

  1. @override
String get debugShortDescription
override

The description text to show when the filter is part of a composite ImageFilter created using ImageFilter.compose.

Implementation

@override
String get debugShortDescription {
  switch (_type) {
    case _kTypeMode:
      return 'ColorFilter.mode($_color, $_blendMode)';
    case _kTypeMatrix:
      return 'ColorFilter.matrix($_matrix)';
    case _kTypeLinearToSrgbGamma:
      return 'ColorFilter.linearToSrgbGamma()';
    case _kTypeSrgbToLinearGamma:
      return 'ColorFilter.srgbToLinearGamma()';
    default:
      return 'unknow ColorFilter';
  }
}