El class
Element 全局单例服务对象
Constructors
- El()
Properties
- anchor → ElAnchorService
-
Available on El, provided by the ElAnchorServiceExt extension
锚点服务,通常可以搭配ElAnchor小部件一起使用no setter - arrowDownBuilder ↔ WidgetBuilder
-
构建全局下箭头图标
getter/setter pair
- arrowRightBuilder ↔ WidgetBuilder
-
构建全局右箭头图标
getter/setter pair
- cursor → ElCursorService
-
Available on El, provided by the ElCursorServiceExt extension
光标服务no setter - dialog → ElDialogService
-
Available on El, provided by the ElDialogServiceExt extension
no setter - drawer → ElDrawerService
-
Available on El, provided by the ElDrawerServiceExt extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- router → ElRouterService
-
Available on El, provided by the ElRouterServiceExt extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollControllerBuilder ↔ ElScrollControllerBuilder
-
定义全局默认的滚动控制器,Element 所有与滚动相关的代码都从这里创建默认的滚动控制器。
getter/setter pair
- storage → ElStorageService
-
Available on El, provided by the ElStorageServiceExt extension
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shadow(
{num elevation = 4, Color? color, BlurStyle blurStyle = BlurStyle.normal}) → List< BoxShadow> -
Available on El, provided by the ElShadowExt extension
创建 Element 阴影,它会在四周平稳散开,一共支持 8 个层级 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- duration → const Duration
- 默认的动画时间
- error → const String
- fastDuration → const Duration
- 快速的动画时间
- info → const String
-
levelTypes
→ const List<
String> - 通用的 5 种级别类型集合
- lg → const String
- md → const String
- primary → const String
- secondary → const String
- sm → const String
- success → const String
-
themeStatusTypes
→ const List<
String> - 主题状态类型集合
-
themeTypes
→ const List<
String> - 颜色主题类型集合
- warning → const String
- xl → const String
- xs → const String