LinkageView<T extends BaseItem> class

双列表菜单

itemHeadHeight 是右边列表的高度 itemHeight 是没一项的高度 items 是列表内容,分head和item itemBuilder是item的builder groupItemBuilder是groupItem的builder headerBuilder是header的builder OnGroupItemTap是点击组的时候返回的回调 flexLeft是左边打flex flexRight是右边的flex duration 动画时间 isNeedStick 是否需要粘性头 curved 动画效果 例子: myBaseItem继承BaseItem

Inheritance

Constructors

LinkageView({List<T> items, GetGroupItem<BaseItem> itemBuilder, GetGeneralItem<BaseItem> groupItemBuilder, GetHearWidget<BaseItem> headerBuilder, OnGroupItemTap<BaseItem> onGroupItemTap, bool isNeedStick = true, Curve curve = Curves.linear, double itemHeadHeight = 30, double itemHeight = 50, double itemGroupHeight = 50, int duration, int flexLeft = 1, int flexRight = 3})

Properties

curve Curve
final
duration int
final
flexLeft int
final
flexRight int
final
groupItemBuilder GetGeneralItem<BaseItem>
final
groups List<T>
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
headerBuilder GetHearWidget<BaseItem>
final
isNeedStick bool
final
itemBuilder GetGroupItem<BaseItem>
final
itemGroupHeight double
final
itemHeadHeight double
final
itemHeight double
final
items List<T>
final
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
onGroupItemTap OnGroupItemTap<BaseItem>
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _LinkageViewState<BaseItem>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
@nonVirtualinherited