toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final StringBuffer result = StringBuffer();
  result.write('ImageConfiguration(');
  bool hasArguments = false;
  if (bundle != null) {
    if (hasArguments)
      result.write(', ');
    result.write('bundle: $bundle');
    hasArguments = true;
  }
  if (devicePixelRatio != null) {
    if (hasArguments)
      result.write(', ');
    result.write('devicePixelRatio: ${devicePixelRatio.toStringAsFixed(1)}');
    hasArguments = true;
  }
  if (locale != null) {
    if (hasArguments)
      result.write(', ');
    result.write('locale: $locale');
    hasArguments = true;
  }
  if (textDirection != null) {
    if (hasArguments)
      result.write(', ');
    result.write('textDirection: $textDirection');
    hasArguments = true;
  }
  if (size != null) {
    if (hasArguments)
      result.write(', ');
    result.write('size: $size');
    hasArguments = true;
  }
  if (platform != null) {
    if (hasArguments)
      result.write(', ');
    result.write('platform: ${describeEnum(platform)}');
    hasArguments = true;
  }
  result.write(')');
  return result.toString();
}