# toString method

1. @override

String toString ()
override

Returns a string representation of this object.

## Implementation

    @override
    String toString() {
      switch (_type) {
        case _TypeMode:
          return 'ColorFilter.mode($_color, $_blendMode)';
        case _TypeMatrix:
          return 'ColorFilter.matrix($_matrix)';
        case _TypeLinearToSrgbGamma:
          return 'ColorFilter.linearToSrgbGamma()';
        case _TypeSrgbToLinearGamma:
          return 'ColorFilter.srgbToLinearGamma()';
        default:
          return 'Unknown ColorFilter type. This is an error. If you\'re seeing this, please file an issue at https://github.com/flutter/flutter/issues/new.';
      }
    }