debugLabel property

String? debugLabel

A human-readable description of this text style.

This property is maintained only in debug builds.

When merging (merge), copying (copyWith), modifying using apply, or interpolating (lerp), the label of the resulting style is marked with the debug labels of the original styles. This helps figuring out where a particular text style came from.

This property is not considered when comparing text styles using == or compareTo, and it does not affect hashCode.


final String? debugLabel;