UiViewController class

Single source of truth for a viewer instance. Bridges adapter + viewport controller and exposes a reactive state stream for the widget layer.

Constructors

UiViewController({required UiViewAdapter adapter, required String target, DeviceFrame? frame, double initialScale = 1.0, ValidateFn? validate, List<Duration>? backoffSchedule})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
states Stream<UiViewControllerState>
no setter
value UiViewControllerState
no setter
viewportController ViewportController
no setter

Methods

dispose() Future<void>
fitToScreen(Size contentSize, Size viewportSize) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pan(Offset delta) → void
pause() → void
Stop emitting snapshots until resume is called. Watch subscription stays alive; the most recent snapshot received while paused replays on resume. Useful for inactive tabs in UiViewMulti.
refresh() Future<void>
resume() → void
Unpause and emit the most recent pending snapshot (if any).
setFrame(DeviceFrame frame) → void
setOffset(Offset offset) → void
setScale(double scale) → void
setTarget(String target) → void
toString() String
A string representation of this object.
inherited
zoomAt(Offset center, double factor) → void

Operators

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