toString method

  1. @override
String toString()
override

Returns a string representation of the Category instance.

The string contains the type name and the id and name of the category.

Implementation

@override
String toString() {
  return '${Helpers.getTypeName(Category)}: id = $id, name = $name';
}