using Unity.UIWidgets.foundation; using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using Unity.UIWidgets.foundation; namespace UIWidgetsSample { class EquatableConfig { /// {@template stringify} /// Global [stringify] setting for all [Equatable] instances. /// /// If [stringify] is overridden for a particular [Equatable] instance, /// then the local [stringify] value takes precedence /// over [EquatableConfig.stringify]. /// /// This value defaults to true in debug mode and false in release mode. /// {@endtemplate} public static bool stringify { get { if (_stringify == null) { D.assert(() => { _stringify = true; return true; }); } return false; } set { _stringify = value; } } /// {@macro stringify} static bool? _stringify; } }