您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
44 行
981 B
44 行
981 B
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;
|
|
}
|
|
}
|