ChatUIKitRoute class
路由
Constructors
- ChatUIKitRoute()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uikitRoutes
→ Map<
String, ChatUIKitWidgetBuilder> -
final
Methods
-
generateRoute<
T extends Object> (RouteSettings settings) → Route? -
ChatUIKit 路由拦截器, 可以在
onGenerateRoute
中进行拦截,如果拦截失败,再进行你自己的路由跳转。 -
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
Static Properties
- hasInit ↔ bool
-
getter/setter pair
- instance → ChatUIKitRoute
-
路由初始化,如果使用路由,需要先调用此方法。
ChatUIKitRoute.instance;
no setter - lastModel → ChatUIKitRouteBackModel?
-
no setter
Static Methods
-
pop(
BuildContext context, {int sceneCount = 1}) → dynamic -
popToContactsView(
BuildContext context, {ChatUIKitRouteBackModel? model}) → dynamic - 返回到联系人列表页面,如果没找到,则返回根页面
-
popToGroupsView(
BuildContext context, {ChatUIKitRouteBackModel? model}) → dynamic - 返回到群组列表页面,如果没找到,则返回根页面
-
popToMessagesView(
BuildContext context, {ChatUIKitRouteBackModel? model}) → void - 返回到联系人列表页面,如果没找到,则返回根页面
-
popToRoot(
BuildContext context, {ChatUIKitRouteBackModel? model}) → dynamic - 返回到根页面
-
pushOrPushNamed<
T extends Object?> (BuildContext context, String pushName, ChatUIKitViewArguments arguments) → Future< T?> - 路由跳转,如果没有初始化,则使用 MaterialPageRoute 进行跳转。