YuroInterface class abstract

Available extensions

Constructors

YuroInterface.new()

Properties

androidId String?

Available on YuroInterface, provided by the YuroAppExt extension

获取androidId
no setter
appConfig AppConfig

Available on YuroInterface, provided by the YuroAppExt extension

获取应用配置
no setter
applicationDocumentsDirectory Future<Directory>

Available on YuroInterface, provided by the PathExt extension

获取应用文件目录(IOS和安卓通用)
no setter
applicationSupportDirectory Future<Directory>

Available on YuroInterface, provided by the PathExt extension

获取应用支持目录(IOS和安卓通用)
no setter
appName String

Available on YuroInterface, provided by the YuroAppExt extension

获取应用名称
no setter
currentContext BuildContext

Available on YuroInterface, provided by the YuroRouteExt extension

no setter
currentDateTime DateTime

Available on YuroInterface, provided by the DateTimeForYuroExt extension

no setter
currentState NavigatorState

Available on YuroInterface, provided by the YuroRouteExt extension

no setter
currentTimeStamp int

Available on YuroInterface, provided by the DateTimeForYuroExt extension

no setter
downloadsDirectory Future<Directory?>

Available on YuroInterface, provided by the PathExt extension

获取下载目录(仅桌面可用 安卓和IOS报错)
no setter
externalCacheDirectories Future<List<Directory>?>

Available on YuroInterface, provided by the PathExt extension

获取外部缓存目录(仅安卓可用)
no setter
externalStorageDirectories Future<List<Directory>?>

Available on YuroInterface, provided by the PathExt extension

获取外部存储目录列表(仅安卓可用)
no setter
externalStorageDirectory Future<Directory?>

Available on YuroInterface, provided by the PathExt extension

获取外部存储目录(仅安卓可用)
no setter
fallbackLocale Locale

Available on YuroInterface, provided by the YuroAppExt extension

no setter
hashCode int
The hash code for this object.
no setterinherited
libraryDirectory Future<Directory>

Available on YuroInterface, provided by the PathExt extension

获取应用持久存储目录路径(仅IOS可用)
no setter
locale Locale?

Available on YuroInterface, provided by the YuroAppExt extension

no setter

Available on YuroInterface, provided by the YuroRouteExt extension

getter/setter pair
packageName String

Available on YuroInterface, provided by the YuroAppExt extension

获取应用包名
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen Screen

Available on YuroInterface, provided by the ScreenExt extension

no setter
sp → SharedPreferences

Available on YuroInterface, provided by the YuroSpExt extension

no setter
temporaryDirectory Future<Directory>

Available on YuroInterface, provided by the PathExt extension

获取临时文件路径(IOS和安卓通用)
no setter
textTheme TextTheme

Available on YuroInterface, provided by the YuroAppExt extension

no setter
theme ThemeData

Available on YuroInterface, provided by the YuroAppExt extension

no setter
themeMode ThemeMode

Available on YuroInterface, provided by the YuroAppExt extension

no setter
translations Map<String, Map<String, String>>

Available on YuroInterface, provided by the YuroAppExt extension

获取国际化翻译对照表
no setter
userAgent String

Available on YuroInterface, provided by the YuroAppExt extension

获取userAgent
no setter
versionCode int

Available on YuroInterface, provided by the YuroAppExt extension

获取应用数字版本号
no setter
versionName String

Available on YuroInterface, provided by the YuroAppExt extension

获取应用版本
no setter

Methods

canPop() bool

Available on YuroInterface, provided by the YuroRouteExt extension

changeLoadingTheme(LoadingTheme newTheme) → void

Available on YuroInterface, provided by the YuroLoadingExt extension

changeLocale(Locale? locale) → void

Available on YuroInterface, provided by the YuroAppExt extension

changeLogConfig(LogConfig config) → void

Available on YuroInterface, provided by the LoggerExt extension

changeThemeMode(ThemeMode newThemeMode) → void

Available on YuroInterface, provided by the YuroAppExt extension

changeToastTheme(ToastTheme newTheme) → void

Available on YuroInterface, provided by the YuroToastExt extension

d(dynamic message, [dynamic err, StackTrace? stackTrace]) → void

Available on YuroInterface, provided by the LoggerExt extension

dismissLoading([UniqueKey? key]) → void

Available on YuroInterface, provided by the YuroLoadingExt extension

e(dynamic message, [dynamic err, StackTrace? stackTrace]) → void

Available on YuroInterface, provided by the LoggerExt extension

hive<T>(void run(Box<T> box)) Future<void>

Available on YuroInterface, provided by the YuroHiveExt extension

hiveBox<T>([String? boxName]) Box<T>

Available on YuroInterface, provided by the YuroHiveExt extension

hiveLazyBox<T>([String? boxName]) LazyBox<T>

Available on YuroInterface, provided by the YuroHiveExt extension

i(dynamic message, [dynamic err, StackTrace? stackTrace]) → void

Available on YuroInterface, provided by the LoggerExt extension

initHive({String? dir}) Future<void>

Available on YuroInterface, provided by the YuroHiveExt extension

  • dir 存储路径
  • initSharedPreferences() Future<void>

    Available on YuroInterface, provided by the YuroSpExt extension

    isHiveAdapterRegistered<T>(int typeId) bool

    Available on YuroInterface, provided by the YuroHiveExt extension

    lazyHive<T>(void run(LazyBox<T> lazyBox)) Future<void>

    Available on YuroInterface, provided by the YuroHiveExt extension

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    openHiveBox<T>([String? boxName]) Future<Box<T>>

    Available on YuroInterface, provided by the YuroHiveExt extension

    openHiveLazyBox<T>([String? boxName]) Future<LazyBox<T>>

    Available on YuroInterface, provided by the YuroHiveExt extension

    pop<T>([T? result]) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    popAndPushNamed<T, TO>(String routeName, {TO? result, Object? arguments}) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    popUntil(RoutePredicate predicate) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    push<T>(Route<T> route) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    pushAndRemoveUntil<T>(Route<T> newRoute, RoutePredicate predicate) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    pushNamed<T>(String routeName, {Object? arguments}) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    pushNamedAndRemoveUntil<T>(String newRouteName, RoutePredicate predicate, {Object? arguments}) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    pushReplacement<T, TO>(Route<T> newRoute, {TO? result}) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    pushReplacementNamed<T, TO>(String routeName, {TO? result, Object? arguments}) Future<T?>

    Available on YuroInterface, provided by the YuroRouteExt extension

    registerHiveAdapter<T>(TypeAdapter<T> adapter) → void

    Available on YuroInterface, provided by the YuroHiveExt extension

    reload() → void

    Available on YuroInterface, provided by the YuroAppExt extension

    应用重新载入
    removeRoute(Route route) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    removeRouteBelow(Route anchorRoute) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    replace<T>({required Route oldRoute, required Route<T> newRoute}) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    replaceRouteBelow<T>({required Route anchorRoute, required Route<T> newRoute}) → void

    Available on YuroInterface, provided by the YuroRouteExt extension

    sendStream(dynamic event) → void

    Available on YuroInterface, provided by the StreamBusExt extension

    showLoading([VoidCallback? onDismiss]) UniqueKey?

    Available on YuroInterface, provided by the YuroLoadingExt extension

    showToast(String text, {ToastTheme? theme}) → void

    Available on YuroInterface, provided by the YuroToastExt extension

    showToastWidget({required Widget child, ToastTheme? theme, VoidCallback? onDismiss}) → void

    Available on YuroInterface, provided by the YuroToastExt extension

    streamEventOn([List<int> codes = const []]) Stream<StreamEvent>

    Available on YuroInterface, provided by the StreamBusExt extension

    streamOn<T>() Stream<T>

    Available on YuroInterface, provided by the StreamBusExt extension

    tag([String? tag]) Logger

    Available on YuroInterface, provided by the LoggerExt extension

    toString() String
    A string representation of this object.
    inherited
    v(dynamic message, [dynamic err, StackTrace? stackTrace]) → void

    Available on YuroInterface, provided by the LoggerExt extension

    w(dynamic message, [dynamic err, StackTrace? stackTrace]) → void

    Available on YuroInterface, provided by the LoggerExt extension

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited