示例#1
0
 public CheckboxListTile(
     Key key    = null,
     bool?value = null,
     ValueChanged <bool?> onChanged = null,
     Color activeColor = null,
     Color checkColor  = null,
     Widget title      = null,
     Widget subtitle   = null,
     bool isThreeLine  = false,
     bool?dense        = null,
     Widget secondary  = null,
     bool selected     = false,
     ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform
     ) : base(key: key)
 {
     D.assert(value != null);
     D.assert(!isThreeLine || subtitle != null);
     this.checkColor      = checkColor;
     this.title           = title;
     this.subtitle        = subtitle;
     this.isThreeLine     = isThreeLine;
     this.dense           = dense;
     this.secondary       = secondary;
     this.selected        = selected;
     this.controlAffinity = controlAffinity;
     this.value           = value;
     this.activeColor     = activeColor;
     this.onChanged       = onChanged;
 }
示例#2
0
        public RadioListTile(
            Key key      = null,
            T value      = default,
            T groupValue = default,
            ValueChanged <T> onChanged = null,
            bool toggleable            = false,
            Color activeColor          = null,
            Widget title     = null,
            Widget subtitle  = null,
            bool isThreeLine = false,
            bool?dense       = null,
            Widget secondary = null,
            bool selected    = false,
            ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform
            ) : base(key: key)
        {
            D.assert(!isThreeLine || subtitle != null);

            this.value           = value;
            this.groupValue      = groupValue;
            this.onChanged       = onChanged;
            this.toggleable      = toggleable;
            this.activeColor     = activeColor;
            this.title           = title;
            this.subtitle        = subtitle;
            this.isThreeLine     = isThreeLine;
            this.dense           = dense;
            this.secondary       = secondary;
            this.selected        = selected;
            this.controlAffinity = controlAffinity;
        }