toString method

  1. @override
String toString()
override

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() {
  final String toString = '''// region ${_table.modelName}Field
class ${_table.modelName}Field extends FilterBase {
${_table.modelName}Field(${_table.modelName}FilterBuilder ${_table._modelLowerCase}FB) : super(${_table._modelLowerCase}FB);

@override
${_table.modelName}FilterBuilder equals(dynamic pValue) {
  return super.equals(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder equalsOrNull(dynamic pValue) {
  return super.equalsOrNull(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder isNull() {
  return super.isNull() as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder contains(dynamic pValue) {
  return super.contains(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder startsWith(dynamic pValue) {
  return super.startsWith(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder endsWith(dynamic pValue) {
  return super.endsWith(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder between(dynamic pFirst, dynamic pLast) {
  return super.between(pFirst, pLast) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder greaterThan(dynamic pValue) {
  return super.greaterThan(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder lessThan(dynamic pValue) {
  return super.lessThan(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder greaterThanOrEquals(dynamic pValue) {
  return super.greaterThanOrEquals(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder lessThanOrEquals(dynamic pValue) {
  return super.lessThanOrEquals(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}FilterBuilder inValues(dynamic pValue) {
  return super.inValues(pValue) as ${_table.modelName}FilterBuilder;
}
@override
${_table.modelName}Field get not {
  return super.not as ${_table.modelName}Field;
}

}
// endregion ${_table.modelName}Field
''';
  return toString;
}