toString method

  1. @override
String toString({
  1. dynamic short = false,
})
override

Returns a string representation of the controller.

If short is true, the method returns a short representation by extracting and returning the last part of the class name from the superclass’s toString method, removing any single quotes.

If short is false, the method returns the full string representation of the class.

Returns a String representing the controller.

Implementation

@override
String toString({var short = false}) {
  if (short) {
    return super.toString().split(' ').last.replaceAll("'", '');
  }
  return super.toString();
}