Class Icon
Inheritance
Icon
Inherited Members
Namespace: Unity.UIWidgets.widgets
Syntax
public class Icon : StatelessWidget
Constructors
Icon(IconData, Key, Nullable<Single>, Color)
Declaration
public Icon(IconData icon, Key key = null, float? size = default(float? ), Color color = null)
Parameters
Type | Name | Description |
---|---|---|
IconData | icon | |
Key | key | |
Nullable<Single> | size | |
Color | color |
Fields
color
Declaration
public readonly Color color
Field Value
Type | Description |
---|---|
Color |
icon
Declaration
public readonly IconData icon
Field Value
Type | Description |
---|---|
IconData |
size
Declaration
public readonly float? size
Field Value
Type | Description |
---|---|
Nullable<Single> |
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context |
Returns
Type | Description |
---|---|
Widget |