Inheritance
System.Object
DropdownButton<T>
public class DropdownButton<T> : StatefulWidget where T : class
Type Parameters
Constructors
Declaration
public DropdownButton(Key key = null, List<DropdownMenuItem<T>> items = null, T value = null, Widget hint = null, Widget disabledHint = null, ValueChanged<T> onChanged = null, int elevation = 8, TextStyle style = null, float iconSize = 24F, bool isDense = false, bool isExpanded = false)
Parameters
Type |
Name |
Description |
Key |
key |
|
System.Collections.Generic.List<DropdownMenuItem<T>> |
items |
|
T |
value |
|
Widget |
hint |
|
Widget |
disabledHint |
|
ValueChanged<T> |
onChanged |
|
System.Int32 |
elevation |
|
TextStyle |
style |
|
System.Single |
iconSize |
|
System.Boolean |
isDense |
|
System.Boolean |
isExpanded |
|
Fields
Declaration
public readonly Widget disabledHint
Field Value
Declaration
public readonly int elevation
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public readonly Widget hint
Field Value
Declaration
public readonly float iconSize
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly bool isDense
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly bool isExpanded
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly List<DropdownMenuItem<T>> items
Field Value
Declaration
public readonly ValueChanged<T> onChanged
Field Value
Declaration
public readonly TextStyle style
Field Value
Declaration
Field Value
Methods
Declaration
public override State createState()
Returns
Overrides