toString method

  1. @override
String toString([
  1. String extra = ''
])

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString([String extra = '']) {
  var _toString = '';

  _toString += '$runtimeType {';
  _toString += '\n  name: $name';
  _toString += ',\n  isValueChanged: $isValueChanged';
  _toString += ',\n  updatedValue: $updatedValue';
  _toString += ',\n  initialValue: $initialValue';
  _toString += ',\n  value: $value';
  _toString += ',\n  error: $error';
  _toString += ',\n  isDirty: $isDirty';
  _toString += ',\n  isValidated: $isValidated';
  _toString += ',\n  isValidating: $isValidating';
  _toString += ',\n  isValid: $isValid';
  _toString += ',\n  extraData: $extraData';
  _toString += extra;
  _toString += ',\n  formBloc: $formBloc';
  _toString += '\n}';

  return _toString;
}