global_def library

MIT License

Copyright (c) 2020 ManBang Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Classes

DFStopAlwaysRenderController
LayoutInfo
LifeCycleStep
生命周期类型
NoSplash
NoSplashFactory
组件点击后的纹理类型 用于关闭默认的水纹效果
Position
具有上下左右四个属性的位置类型
Range
数字范围类型 闭区间 Range(min: 0, max: 1) 表示 0, 1
RouteInfo
路由信息
StackList<T>
模拟栈列表并提供一些特殊的方法
TimerForJs
为 js 提供的定时器类型

Functions

eventGlobalHandlerWithParam<T>({String pageName, String widgetId, String eventId, String type}) ParamGlobalHandler<T>
带参数的全局事件回调生成器
eventGlobalVoidHandler({String pageName, String widgetId, String eventId, String type}) VoidGlobalHandler
无返回值的全局事件回调生成器

Enums

DynamicFlutterErrorType
df 异常
TimerType

Typedefs

ErrorHandler = void Function(DynamicFlutterError error)
异常处理
ModelBuilder = Widget Function(DynamicModel model, BuildContext context)
拦截器的构建方法类型
NotFoundPageBuilder = Widget Function(BuildContext context, Map<String, String> pathInfo)
404页面
OnWhiteScreen = Widget Function(dynamic reason)
白屏处理
ParamGlobalHandler<T> = void Function(T param)
带参数全局事件回调类型
PlaceholderBuilder = Widget Function(BuildContext context)
占位屏构造器
VoidGlobalHandler = void Function()
无返回值全局事件回调类型

Exceptions / Errors

DynamicFlutterError