KrakenViewController class

Implemented types

Constructors

KrakenViewController(double _viewportWidth, double _viewportHeight, {Color? background, bool enableDebug = false, int? contextId, required KrakenController rootController, KrakenNavigationDelegate? navigationDelegate, GestureListener? gestureListener, WidgetDelegate? widgetDelegate, RenderViewportBox? originalViewport})

Properties

background Color?
getter/setter pair
contextId int
no setter
debugDOMTreeChanged VoidCallback?
getter/setter pair
disposed bool
no setter
document Document
getter/setter pair
enableDebug bool
getter/setter pair
gestureListener GestureListener?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
rootController KrakenController
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewport RenderViewportBox
getter/setter pair
viewportHeight double
getter/setter pair
viewportWidth double
getter/setter pair
widgetDelegate WidgetDelegate?
getter/setter pair
window Window
getter/setter pair

Methods

addEvent(int targetId, String eventType) → void
addWidgetElement(WidgetElement widgetElement) → void
attachTo(RenderObject parent, [RenderObject? previousSibling]) → void
cloneNode(int originalId, int newId) → void
createComment(int targetId, Pointer<NativeBindingObject> nativePtr) → void
createDocumentFragment(int targetId, Pointer<NativeBindingObject> nativePtr) → void
createElement(int targetId, Pointer<NativeBindingObject> nativePtr, String tagName) → void
createTextNode(int targetId, Pointer<NativeBindingObject> nativePtr, String data) → void
deactivateWidgetElements() → void
didChangeAccessibilityFeatures() → void
Called when the system changes the set of currently active accessibility features.
override
didChangeAppLifecycleState(AppLifecycleState state) → void
Called when the system puts the app in the background or returns the app to the foreground.
override
didChangeLocales(List<Locale>? locales) → void
Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings.
override
didChangeMetrics() → void
Called when the application's dimensions change. For example, when a phone is rotated.
override
didChangePlatformBrightness() → void
Called when the platform brightness changes.
override
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes.
override
didHaveMemoryPressure() → void
Called when the system is running low on memory.
override
didPopRoute() Future<bool>
Called when the system tells the app to pop the current route, such as after a system back button press or back gesture.
override
didPushRoute(String route) Future<bool>
Called when the host tells the application to push a new route onto the navigator.
override
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router.
override
didRequestAppExit() Future<AppExitResponse>
Called when a request is received from the system to exit the application.
inherited
dispose() → void
disposeEventTarget(int targetId) → void
evaluateJavaScripts(String code) → void
flushPendingStyleProperties(int targetId) → void
getAttribute(int targetId, String key) String?
getEventTargetById<T>(int targetId) → T?
getProperty(int targetId, String key) → dynamic
getRootRenderObject() RenderObject
getTargetIdByEventTarget(EventTarget eventTarget) int?
handleNavigationAction(String? sourceUrl, String targetUrl, KrakenNavigationType navigationType) Future<void>
insertAdjacentNode(int targetId, String position, int newTargetId) → void
foo
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttribute(int targetId, String key) → void
removeEvent(int targetId, String eventType) → void
removeNode(int targetId) → void
removeProperty(int targetId, String key) → void
setAttribute(int targetId, String key, String value) → void
setInlineStyle(int targetId, String key, String value) → void
toImage(double devicePixelRatio, [int? eventTargetId]) Future<Uint8List>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

documentNativePtrMap Map<int, Pointer<NativeBindingObject>>
getter/setter pair
FOCUS_VIEWINSET_BOTTOM_OVERALL double
getter/setter pair
windowNativePtrMap Map<int, Pointer<NativeBindingObject>>
getter/setter pair