an_lifecycle_cancellable library

Classes

LifecycleExtData
寄存于lifecycle的数据
SingleListenerManager
TypedKey<T>

Functions

showCAboutDialog({required BuildContext context, Cancellable? cancellable, String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, List<Widget>? children, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint}) → void
showCCupertinoDialog<T>({required BuildContext context, required WidgetBuilder builder, Cancellable? cancellable, String? barrierLabel, bool useRootNavigator = true, bool barrierDismissible = false, RouteSettings? routeSettings, Offset? anchorPoint}) Future<T?>
showCCupertinoModalPopup<T>({required BuildContext context, required WidgetBuilder builder, Cancellable? cancellable, ImageFilter? filter, Color barrierColor = kCupertinoModalBarrierColor, bool barrierDismissible = true, bool useRootNavigator = true, bool semanticsDismissible = false, RouteSettings? routeSettings, Offset? anchorPoint}) Future<T?>
showCDialog<T>({required BuildContext context, required WidgetBuilder builder, Cancellable? cancellable, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint}) Future<T?>
showCGeneralDialog<T extends Object?>({required BuildContext context, required RoutePageBuilder pageBuilder, Cancellable? cancellable, bool barrierDismissible = false, String? barrierLabel, Color barrierColor = const Color(0x80000000), Duration transitionDuration = const Duration(milliseconds: 200), RouteTransitionsBuilder? transitionBuilder, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint}) Future<T?>
showCLicensePage({required BuildContext context, Cancellable? cancellable, String? applicationName, String? applicationVersion, Widget? applicationIcon, String? applicationLegalese, bool useRootNavigator = false}) → void
showCModalBottomSheet<T>({required BuildContext context, required WidgetBuilder builder, Cancellable? cancellable, Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, bool? showDragHandle, bool useSafeArea = false, RouteSettings? routeSettings, AnimationController? transitionAnimationController, Offset? anchorPoint}) Future<T?>

Typedefs

Launcher<T> = FutureOr Function(T data)
VoidCallBack = void Function()