callbacks library

Typedefs

ActionListenerCallable = Callable1<void, Action<Intent>>
typedef ActionListenerCallback = void Function(Action
AnimatableCallable = Callable1<void, double>
typedef AnimatableCallback
AnimationStatusListenerCallable = Callable1<void, AnimationStatus>
typedef AnimationStatusListener = void Function(AnimationStatus status);
AppPrivateCommandCallable = Callable2<void, String, Map<String, dynamic>>
typedef AppPrivateCommandCallback = void Function(String, Map<String, dynamic>);
AutocompleteOnSelectedCallable<T extends Object> = Callable1<void, T>
typedef AutocompleteOnSelected
BoxConstraintsTransformCallable = Callable1<BoxConstraints, BoxConstraints>
typedef BoxConstraintsTransform = BoxConstraints Function(BoxConstraints);
ChildIndexGetterCallable = Callable1<int?, Key>
typedef ChildIndexGetter = int? Function(Key key);
ConfirmDismissCallable = Callable1<Future<bool?>, DismissDirection>
typedef ConfirmDismissCallback = Future<bool?> Function(DismissDirection direction);
CreatePlatformViewCallable = Callable1<PlatformViewController, PlatformViewCreationParams>
typedef CreatePlatformViewCallback = PlatformViewController Function(PlatformViewCreationParams params);
CreateRectTweenCallable = Callable2<Tween<Rect?>, Rect?, Rect?>
typedef CreateRectTween = Tween<Rect?> Function(Rect? begin, Rect? end);
DismissDirectionCallable = Callable1<void, DismissDirection>
typedef DecoderBufferCallback = Future<ui.Codec> Function(ui.ImmutableBuffer buffer, {int? cacheWidth, int? cacheHeight, bool allowUpscaling}); typedef DecoderBufferCallable = DecoderBufferCallback; typedef DecoderCallback = Future<ui.Codec> Function(Uint8List buffer, {int? cacheWidth, int? cacheHeight, bool allowUpscaling}); typedef DecoderCallable = DecoderCallback; typedef DismissDirectionCallback = void Function(DismissDirection direction);
DismissUpdateCallable = Callable1<void, DismissUpdateDetails>
typedef DismissUpdateCallback = void Function(DismissUpdateDetails details);
DragAnchorStrategyCallable = Callable3<Offset, Draggable<Object>, BuildContext, Offset>
typedef DragAnchorStrategy = Offset Function(Draggable
DragEndCallable = Callable1<void, DraggableDetails>
typedef DragEndCallback = void Function(DraggableDetails details);
DraggableCanceledCallable = Callable2<void, Velocity, Offset>
typedef DraggableCanceledCallback = void Function(Velocity velocity, Offset offset);
DragSelectionUpdateCallable = Callable2<void, DragStartDetails, DragUpdateDetails>
typedef DragSelectionUpdateCallback = void Function(DragStartDetails startDetails, DragUpdateDetails updateDetails);
DragTargetAcceptCallable<T> = Callable1<void, T>
typedef DragTargetAccept
DragTargetAcceptWithDetailsCallable<T> = Callable1<void, DragTargetDetails<T>>
typedef DragTargetAcceptWithDetails
DragTargetLeaveCallable<T> = Callable1<void, T?>
typedef DragTargetLeave
DragTargetMoveCallable<T> = Callable1<void, DragTargetDetails<T>>
typedef DragTargetMove
DragTargetWillAcceptCallable<T> = Callable1<bool, T?>
typedef DragTargetWillAccept
DragUpdateCallable = Callable1<void, DragUpdateDetails>
typedef DragUpdateCallback = void Function(DragUpdateDetails details);
ElementVisitorCallable = Callable1<void, Element>
typedef ElementVisitor = void Function(Element element);
FocusOnKeyCallable = Callable2<KeyEventResult, FocusNode, RawKeyEvent>
typedef FocusOnKeyCallback = KeyEventResult Function(FocusNode node, RawKeyEvent event);
FocusOnKeyEventCallable = Callable2<KeyEventResult, FocusNode, KeyEvent>
typedef FocusOnKeyEventCallback = KeyEventResult Function(FocusNode node, KeyEvent event);
FormFieldSetterCallable<T> = Callable1<void, T?>
typedef FormFieldSetter
FormFieldValidatorCallable<T> = Callable1<String?, T?>
typedef FormFieldValidator
GenerateAppTitleCallable = Callable1<String, BuildContext>
typedef GenerateAppTitle = String Function(BuildContext context);
GestureDragCancelCallable = Callable<void>
typedef GestureDragCancelCallback = void Function();
GestureDragDownCallable = Callable1<void, DragDownDetails>
typedef GestureDragDownCallback = void Function(DragDownDetails details);
GestureDragEndCallable = Callable1<void, DragEndDetails>
typedef GestureDragEndCallback = void Function(DragEndDetails details);
GestureDragStartCallable = Callable1<void, DragStartDetails>
typedef GestureDragStartCallback = void Function(DragStartDetails details);
GestureDragUpdateCallable = Callable1<void, DragUpdateDetails>
typedef GestureDragUpdateCallback = void Function(DragUpdateDetails details);
GestureForcePressEndCallable = Callable1<void, ForcePressDetails>
typedef GestureForcePressEndCallback = void Function(ForcePressDetails details);
GestureForcePressPeakCallable = Callable1<void, ForcePressDetails>
typedef GestureForcePressPeakCallback = void Function(ForcePressDetails details);
GestureForcePressStartCallable = Callable1<void, ForcePressDetails>
typedef GestureForcePressStartCallback = void Function(ForcePressDetails details);
GestureForcePressUpdateCallable = Callable1<void, ForcePressDetails>
typedef GestureForcePressUpdateCallback = void Function(ForcePressDetails details);
GestureLongPressCallable = Callable<void>
typedef GestureLongPressCallback = void Function();
GestureLongPressEndCallable = Callable1<void, LongPressEndDetails>
typedef GestureLongPressEndCallback = void Function(LongPressEndDetails details);
GestureLongPressMoveUpdateCallable = Callable1<void, LongPressMoveUpdateDetails>
typedef GestureLongPressMoveUpdateCallback = void Function(LongPressMoveUpdateDetails details);
GestureLongPressStartCallable = Callable1<void, LongPressStartDetails>
typedef GestureLongPressStartCallback = void Function(LongPressStartDetails details);
GestureLongPressUpCallable = Callable<void>
typedef GestureLongPressUpCallback = void Function();
GestureRecognizerFactoryConstructorCallable<T extends GestureRecognizer> = Callable<T>
typedef GestureRecognizerFactoryConstructor
GestureRecognizerFactoryInitializerCallable<T extends GestureRecognizer> = Callable1<void, T>
typedef GestureRecognizerFactoryInitializer
GestureScaleEndCallable = Callable1<void, ScaleEndDetails>
typedef GestureScaleEndCallback = void Function(ScaleEndDetails details);
GestureScaleStartCallable = Callable1<void, ScaleStartDetails>
typedef GestureScaleStartCallback = void Function(ScaleStartDetails details);
GestureScaleUpdateCallable = Callable1<void, ScaleUpdateDetails>
typedef GestureScaleUpdateCallback = void Function(ScaleUpdateDetails details);
GestureTapCallable = Callable<void>
typedef GestureTapCallback = void Function();
GestureTapCancelCallable = Callable<void>
typedef GestureTapCancelCallback = void Function();
GestureTapDownCallable = Callable1<void, TapDownDetails>
typedef GestureTapDownCallback = void Function(TapDownDetails details);
GestureTapUpCallable = Callable1<void, TapUpDetails>
typedef GestureTapUpCallback = void Function(TapUpDetails details);
ImageChunkListenerCallable = Callable1<void, ImageChunkEvent>
typedef ImageChunkListener = void Function(ImageChunkEvent event);
ImageErrorListenerCallable = Callable2<void, Object, StackTrace?>
typedef ImageErrorListener = void Function(Object exception, StackTrace? stackTrace);
ImageListenerCallable = Callable2<void, ImageInfo, bool>
typedef ImageListener = void Function(ImageInfo image, bool synchronousCall);
InitialRouteListFactoryCallable = Callable1<List<Route>, String>
typedef InitialRouteListFactory = List<Route
InlineSpanVisitorCallable = Callable1<bool, InlineSpan>
typedef InlineSpanVisitor = bool Function(InlineSpan span);
InspectorSelectionChangedCallable = Callable<void>
typedef InspectorSelectionChangedCallback = void Function();
LocaleListResolutionCallable = Callable2<Locale?, List<Locale>?, Iterable<Locale>>
typedef LocaleListResolutionCallback = Locale? Function(List
LocaleResolutionCallable = Callable2<Locale?, Locale?, Iterable<Locale>>
typedef LocaleResolutionCallback = Locale? Function(Locale? locale, Iterable
typedef MenuItemSerializableIdGenerator = int Function(PlatformMenuItem item);
typedef NavigatorFinderCallback = NavigatorState Function(BuildContext context);
NotificationListenerCallable<T extends Notification> = Callable1<bool, T>
typedef NotificationListenerCallback
OnInvokeCallable<T extends Intent> = Callable1<Object?, T>
typedef OnInvokeCallback
PaintImageCallable = Callable1<void, ImageSizeInfo>
typedef PageRouteFactory = PageRoute
PlatformViewSurfaceFactoryCallable = Callable2<Widget, BuildContext, PlatformViewController>
typedef PlatformViewSurfaceFactory = Widget Function(BuildContext context, PlatformViewController controller);
PointerCancelEventListenerCallable = Callable1<void, PointerCancelEvent>
typedef PointerCancelEventListener = void Function(PointerCancelEvent event);
PointerDownEventListenerCallable = Callable1<void, PointerDownEvent>
typedef PointerDownEventListener = void Function(PointerDownEvent event);
PointerMoveEventListenerCallable = Callable1<void, PointerMoveEvent>
typedef PointerMoveEventListener = void Function(PointerMoveEvent event);
PointerUpEventListenerCallable = Callable1<void, PointerUpEvent>
typedef PointerUpEventListener = void Function(PointerUpEvent event);
PopPageCallable = Callable2<bool, Route, dynamic>
typedef PopPageCallback = bool Function(Route
RebuildDirtyWidgetCallable = Callable2<void, Element, bool>
typedef RebuildDirtyWidgetCallback = void Function(Element e, bool builtOnce);
ReorderCallable = Callable2<void, int, int>
typedef RegisterServiceExtensionCallback = void Function({required String name, required ServiceExtensionCallback callback,}); typedef RegisterServiceExtensionCallable = RegisterServiceExtensionCallback; typedef ReorderCallback = void Function(int oldIndex, int newIndex);
ReorderItemProxyDecoratorCallable = Callable3<Widget, Widget, int, Animation<double>>
typedef ReorderItemProxyDecorator = Widget Function(Widget child, int index, Animation
RouteCompletionCallable<T> = Callable1<void, T>
typedef RouteCompletionCallback
RouteFactoryCallable = Callable1<Route?, RouteSettings>
typedef RouteFactory = Route
RouteListFactoryCallable = Callable2<List<Route>, NavigatorState, String>
typedef RouteListFactory = List<Route
RoutePredicateCallable = Callable1<bool, Route>
typedef RoutePredicate = bool Function(Route
RoutePresentationCallable = Callable2<String, NavigatorState, Object?>
typedef RoutePresentationCallback = String Function(NavigatorState navigator, Object? arguments);
ScrollIncrementCalculatorCallable = Callable1<double, ScrollIncrementDetails>
typedef ScrollIncrementCalculator = double Function(ScrollIncrementDetails details);
ScrollNotificationCallable = Callable1<void, ScrollNotification>
typedef ScrollNotificationCallback = void Function(ScrollNotification notification);
ScrollNotificationPredicateCallable = Callable1<bool, ScrollNotification>
typedef ScrollNotificationPredicate = bool Function(ScrollNotification notification);
SelectionChangedCallable = Callable2<void, TextSelection, SelectionChangedCause?>
typedef SelectionChangedCallback = void Function(TextSelection selection, SelectionChangedCause? cause);
SemanticIndexCallable = Callable2<int?, Widget, int>
typedef SemanticIndexCallback = int? Function(Widget widget, int localIndex);
ShaderCallable = Callable1<Shader, Rect>
typedef ShaderCallback = Shader Function(Rect bounds);
ShaderWarmUpImageCallable = Callable1<bool, Image>
typedef ShaderWarmUpImageCallback = bool Function(Image);
ShaderWarmUpPictureCallable = Callable1<bool, Picture>
typedef ShaderWarmUpPictureCallback = bool Function(Picture);
SharedAppDataInitCallable<T> = Callable<T>
typedef SharedAppDataInitCallback
StateSetterCallable = Callable1<void, VoidCallback>
typedef StateSetter = void Function(VoidCallback fn);
TapRegionCallable = Callable1<void, PointerDownEvent>
typedef TapRegionCallback = void Function(PointerDownEvent event);
TextEditingValueCallable = Callable1<void, TextEditingValue>
typedef TextEditingValueCallback = void Function(TextEditingValue value);
TweenConstructorCallable<T extends Object> = Callable1<Tween<T>, T>
typedef TweenConstructor
TweenVisitorCallable<T extends Object> = Callable3<Tween<T>?, Tween<T>?, T, TweenConstructor<T>>
typedef TweenVisitor
ValueChangedCallable<T> = Callable1<void, T>
typedef ValueChanged
ValueGetterCallable<T> = Callable<T>
typedef ValueGetter
ValueListenableTransformerCallable<T> = Callable1<T, T>
typedef ValueListenableTransformer
ValueSetterCallable<T> = Callable1<void, T>
typedef ValueSetter
VoidCallable = Callable<void>
typedef VoidCallback = void Function();
WillPopCallable = Callable<Future<bool>>
typedef WillPopCallback = Future