DialogOptions class
关闭 closePopup
- Inheritance
-
- Object
- GeneralModalOptions
- DialogOptions
Constructors
- DialogOptions({bool barrierDismissible = true, RouteSettings? routeSettings, Color barrierColor = kCupertinoModalBarrierColor, Offset? anchorPoint, String barrierLabel = '', bool useSafeArea = true, double? startOffset, RouteTransitionsBuilder? transitionBuilder, Duration transitionDuration = const Duration(milliseconds: 200), PopupFromStyle fromStyle = PopupFromStyle.fromCenter})
-
const
- DialogOptions.cupertino({bool barrierDismissible = true, RouteSettings? routeSettings, Color barrierColor = kCupertinoModalBarrierColor, Offset? anchorPoint, String barrierLabel = ''})
-
const
- DialogOptions.material({bool barrierDismissible = true, RouteSettings? routeSettings, Offset? anchorPoint, String barrierLabel = '', bool useSafeArea = true})
-
const
Properties
- anchorPoint → Offset?
-
finalinherited
- barrierColor → Color
-
背景颜色
finalinherited
- barrierDismissible → bool
-
barrierDismissible = true 默认为 true 可关闭
finalinherited
- barrierLabel → String
-
语义化
final
- fromStyle → PopupFromStyle
-
popup 进入的方向
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- routeSettings → RouteSettings?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startOffset → double?
-
进入方向的距离
final
- transitionBuilder → RouteTransitionsBuilder?
-
路由显示和隐藏的过程 这里入参是 animation,secondaryAnimation 和 child, 其中 child 是 是 pageBuilder 构建的 widget
final
- transitionDuration → Duration
-
这个是从开始到完全显示的时间
final
-
finalinherited
- useSafeArea → bool
-
final
Methods
-
copyWith(
{double? startOffset, PopupFromStyle? fromStyle, bool? barrierDismissible, String? barrierLabel, Color? barrierColor, Duration? transitionDuration, RouteTransitionsBuilder? transitionBuilder, RouteSettings? routeSettings, Offset? anchorPoint, bool? useSafeArea}) → DialogOptions -
merge(
[DialogOptions? options]) → DialogOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited