コード例 #1
0
 public static DiagnosticsProperty <Color> createCupertinoColorProperty(
     string name,
     Color value,
     bool showName              = true,
     object defaultValue        = null,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
     DiagnosticLevel level      = DiagnosticLevel.info
     )
 {
     if (value is CupertinoDynamicColor)
     {
         return(new DiagnosticsProperty <Color>(
                    name: name,
                    value: value,
                    description: ((CupertinoDynamicColor)value)._debugLabel,
                    showName: showName,
                    defaultValue: defaultValue,
                    style: style,
                    level: level
                    ));
     }
     else
     {
         return(new ColorProperty(
                    name,
                    value,
                    showName: showName,
                    defaultValue: defaultValue,
                    style: style,
                    level: level
                    ));
     }
 }
コード例 #2
0
 public virtual DiagnosticsNode toDiagnosticsNode(
     string name = null,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.sparse)
 {
     return(new DiagnosticableNode <DiagnosticableMixinChangeNotifier>(
                name: name, value: this, style: style
                ));
 }
コード例 #3
0
 public override DiagnosticsNode toDiagnosticsNode(string name = null,
                                                   DiagnosticsTreeStyle style = DiagnosticsTreeStyle.sparse)
 {
     return(new _UIWIdgetsErrorDetailsNode(
                name: name,
                value: this,
                style: style
                ));
 }
コード例 #4
0
 public virtual DiagnosticsNode toDiagnosticsNode(
     string name = null,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.sparse)
 {
     return(new DiagnosticableTreeNode(
                name: name,
                value: this,
                style: style
                ));
 }
コード例 #5
0
 public _UIWIdgetsErrorDetailsNode(
     string name,
     UIWidgetsErrorDetails value,
     DiagnosticsTreeStyle style
     ) : base(
         name: name,
         value: value,
         style: style
         )
 {
     D.assert(value != null);
 }
コード例 #6
0
 internal _ErrorDiagnostic(
     List <object> messageParts,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.flat,
     DiagnosticLevel level      = DiagnosticLevel.info
     ) : base(
         name: null,
         value: messageParts,
         showName: false,
         showSeparator: false,
         defaultValue: null,
         style: style,
         level: level)
 {
     D.assert(messageParts != null);
 }
コード例 #7
0
 public ColorProperty(
     string name                = "",
     Color value                = null,
     bool showName              = true,
     object defaultValue        = null,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
     DiagnosticLevel level      = DiagnosticLevel.info
     ) : base(name, value,
              defaultValue: defaultValue,
              showName: showName,
              style: style,
              level: level
              )
 {
 }
コード例 #8
0
 public IconDataProperty(
     string name,
     IconData value,
     string ifNull = null,
     bool showName = true,
     DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
     DiagnosticLevel level      = DiagnosticLevel.info
     ) : base(name,
              value,
              showName: showName,
              ifNull: ifNull,
              style: style,
              level: level
              )
 {
 }
コード例 #9
0
ファイル: diagnostics.cs プロジェクト: zmtzawqlp/UIWidgets
 DiagnosticsTreeStyle getStyleMember(string memberName, DiagnosticsTreeStyle defaultValue)
 {
     return(this.getEnumMember(memberName, defaultValue));
 }