debugLog method

void debugLog([
  1. String? name
])

Logs state changes to the console.

Implementation

void debugLog([String? name]) {
  addListener(() {
    log('Mastro${name != null ? "($name)" : ""}<$T> updated: $value');
  });
}