PopupMenuButtonRotateBuilder class
PopupMenuButton 旋转 Builder
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- PopupMenuButtonRotateBuilder
- Available extensions
Constructors
- PopupMenuButtonRotateBuilder({Key? key, required PopupMenuButtonBuilder builder, required ToggleRotateIconBuilder icon, bool isRotate = false, double turns = 0.5, bool clockwise = true, bool closedNeedsBuild = true, bool openedNeedsBuild = false, Duration animationDuration = const Duration(milliseconds: 200), Curve curve = Curves.fastOutSlowIn, ToggleRotateCallback? onChanged})
-
const
Properties
- animationDuration → Duration
-
动画时长
final
- builder → PopupMenuButtonBuilder
-
builder PopupMenuButton
final
- clockwise → bool
-
是否顺时针旋转
final
- closedNeedsBuild → bool
-
关闭时是否需要重建
final
- curve → Curve
-
动画曲线
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → ToggleRotateIconBuilder
-
旋转的icon
final
- isRotate → bool
-
初始是否旋转
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onChanged → ToggleRotateCallback?
-
变化监听
final
- openedNeedsBuild → bool
-
打开时是否需要重建
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toExpansionTilesRotationIconBuilder → ExpansionTilesRotationIconBuilder
-
Available on Widget, provided by the ExtensionExpansionTiles extension
no setter - toToggleRotateIconBuilder → ToggleRotateIconBuilder
-
Available on Widget, provided by the ExtensionWidgetToggleRotate extension
no setter - turns → double
-
旋转圈数
1 = 一圈 0.5 = 半圈 2 = 两圈
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDecoratorPendant<
T> ({DecoratorPendantPosition positioned = DecoratorPendantPosition.outer, bool maintainSize = false, bool? needFocus, bool? needEditing, DecoratorPendantValueCallback< T?> ? needValue}) → DecoratorPendant<T> -
Available on Widget, provided by the ExtensionWidgetDecoratorBox extension
-
toDecoratorPendantBuilder<
T> ({DecoratorPendantPosition positioned = DecoratorPendantPosition.outer, bool maintainSize = false, bool? needFocus, bool? needEditing, DecoratorPendantValueCallback< T?> ? needValue}) → DecoratorPendant<T> -
Available on Widget, provided by the ExtensionWidgetDecoratorBox extension
-
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, int wrapWidth = 65}) → 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.
inherited