debugPrint method

void debugPrint({
  1. String? debugName,
})

Implementation

void debugPrint({
  String? debugName,
}) {
  debugName ??= _debugName;
  final isMutable = hasData && _isImmutable == false;
  final str = (debugName.isNotEmpty ? '<$debugName>' : '<$T>') +
      ' ' +
      (isMutable ? '[Mutable]' : '') +
      ': '
          '${oldSnapState?._toShortString(_toDebugString?.call(oldSnapState?.data))} ==> '
          '${_toShortString(_toDebugString?.call(data))}';

  StatesRebuilerLogger.log(str);
}