State for a RawInput.

Inheritance
Implements
  • TextInputClient

Constructors

RawInputState()

Properties

cursorBlinkInterval Duration

The cursor blink interval (the amount of time the cursor is in the "on" state or the "off" state). A complete cursor blink period is twice this value (half on, half off).

read-only
cursorCurrentlyVisible bool

Whether the blinking cursor is actually visible at this precise moment (it's hidden half the time, since it blinks).

read-only
scrollBehavior BoundedBehavior

read-only
config RawInput

The current configuration.

read-only, inherited
context BuildContext

The location in the tree where this widget builds.

read-only, inherited
hashCode int

Get a hash code for this object.

read-only, inherited
mounted bool

Whether this State object is currently in a tree.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
scrollOffset double

The current scroll offset.

read-only, inherited
shouldSnapScrollOffset bool

Whether this scrollable should attempt to snap scroll offsets.

read-only, inherited
virtualScrollOffset double

The current scroll offset, irrespective of the constraints defined by any ClampOverscrolls widget ancestors.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

buildContent(BuildContext context) Widget

Calls the widget's builder by default.

createScrollBehavior() ExtentScrollBehavior

Use the value returned by ScrollConfiguration.createScrollBehavior. If this widget doesn't have a ScrollConfiguration ancestor, or its createScrollBehavior callback is null, then return a new instance of OverscrollWhenScrollableBehavior.

didUpdateConfig(RawInput oldConfig) → void

Called whenever the configuration changes.

dispose() → void

Called when this object is removed from the tree permanently.

initState() → void

Called when this object is inserted into the tree.

performAction(TextInputAction action) → void

Requests that this client perform the given action.

requestKeyboard() → void

Express interest in interacting with the keyboard.

updateEditingState(TextEditingState state) → void

Requests that this client update its editing state to the given value.

build(BuildContext context) Widget

Describes the part of the user interface represented by this widget.

inherited
buildGestureDetectors() Map<Type, GestureRecognizerFactory>

Return the gesture detectors, in the form expected by RawGestureDetector.gestures and RawGestureDetectorState.replaceGestureRecognizers, that are applicable to this Scrollable in its current state.

inherited
createTicker(TickerCallback onTick) Ticker

Creates a ticker with the given callback.

inherited
deactivate() → void

Called when this object is removed from the tree.

inherited
debugFillDescription(List<String> description) → void

Add additional information to the given description for use by toString.

inherited
dependenciesChanged() → void

Called when a dependency of this State object changes.

inherited
didUpdateScrollBehavior(double newScrollOffset) → void

Update any in-progress scrolling physics to account for new scroll behavior.

inherited
dispatchOnScroll() → void

Calls the onScroll callback.

inherited
dispatchOnScrollEnd() → void

Calls the dispatchOnScrollEnd callback.

inherited
dispatchOnScrollStart() → void

Calls the onScrollStart callback.

inherited
fling(double scrollVelocity) Future<Null>

If scrollVelocity is greater than PixelScrollTolerance.velocity then fling the scroll offset with the given velocity in logical pixels/second. Otherwise, if this scrollable is overscrolled or a snapOffsetCallback was given, animate the scroll offset to its final value with settleScrollOffset.

inherited
handleExtentsChanged(double contentExtent, double containerExtent) → void

Updates the scroll behavior for the new content and container extent.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
pixelDeltaToScrollOffset(Offset pixelDelta) double

Returns the scroll offset component of the given pixel delta, accounting for the scroll direction and scroll anchor.

inherited
pixelOffsetToScrollOffset(double pixelOffset) double

Convert a position or velocity measured in terms of pixels to a scrollOffset. Scrollable gesture handlers convert their incoming values with this method. Subclasses that define scrollOffset in units other than pixels must override this method.

inherited
reassemble() → void

Called whenever the application is reassembled during debugging.

inherited
scrollBy(double scrollDelta, { Duration duration, Curve curve: Curves.ease, DragUpdateDetails details }) Future<Null>

Scroll this widget by the given scroll delta.

inherited
scrollOffsetToPixelDelta(double scrollOffset) Offset

Returns a two-dimensional representation of the scroll offset, accounting for the scroll direction and scroll anchor.

inherited
scrollOffsetToPixelOffset(double scrollOffset) double

Convert a scrollOffset value to the number of pixels to which it corresponds.

inherited
scrollTo(double newScrollOffset, { Duration duration, Curve curve: Curves.ease, DragUpdateDetails details }) Future<Null>

Scroll this widget to the given scroll offset.

inherited
setState(VoidCallback fn) → void

Notify the framework that the internal state of this object has changed.

inherited
settleScrollOffset() Future<Null>

Animate the scroll offset to a value with a local minima of energy.

inherited
snapScrollOffset(double scrollOffset) double

Returns the snapped offset closest to the given scroll offset.

inherited
toString() String

Returns a string representation of this object.

inherited
updateGestureDetector() → void

Fixes up the gesture detector to listen to the appropriate gestures based on the current information about the layout.

inherited