Class KeyedSubtree
Inheritance
KeyedSubtree
Inherited Members
Namespace: Unity.UIWidgets.widgets
Syntax
public class KeyedSubtree : StatelessWidget
Constructors
KeyedSubtree(Key, Widget)
Declaration
public KeyedSubtree(Key key, Widget child = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | |
| Widget | child |
Fields
child
Declaration
public readonly Widget child
Field Value
| Type | Description |
|---|---|
| Widget |
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildContext | context |
Returns
| Type | Description |
|---|---|
| Widget |
Overrides
ensureUniqueKeysForList(IEnumerable<Widget>, Int32)
Declaration
public static List<Widget> ensureUniqueKeysForList(IEnumerable<Widget> items, int baseIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Widget> | items | |
| Int32 | baseIndex |
Returns
| Type | Description |
|---|---|
| List<Widget> |
wrap(Widget, Int32)
Declaration
public static KeyedSubtree wrap(Widget child, int childIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Widget | child | |
| Int32 | childIndex |
Returns
| Type | Description |
|---|---|
| KeyedSubtree |