Inheritance
System.Object
ScrollController
public class ScrollController : ChangeNotifier, Listenable
Constructors
Declaration
public ScrollController(float initialScrollOffset = 0F, bool keepScrollOffset = true, string debugLabel = null)
Parameters
Type |
Name |
Description |
System.Single |
initialScrollOffset |
|
System.Boolean |
keepScrollOffset |
|
System.String |
debugLabel |
|
Fields
Declaration
public readonly string debugLabel
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly bool keepScrollOffset
Field Value
Type |
Description |
System.Boolean |
|
Properties
Declaration
public bool hasClients { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual float initialScrollOffset { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float offset { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public ScrollPosition position { get; }
Property Value
Declaration
public ICollection<ScrollPosition> positions { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<ScrollPosition> |
|
Methods
Declaration
public IPromise animateTo(float to, TimeSpan duration, Curve curve)
Parameters
Type |
Name |
Description |
System.Single |
to |
|
System.TimeSpan |
duration |
|
Curve |
curve |
|
Returns
Declaration
public virtual void attach(ScrollPosition position)
Parameters
createScrollPosition(ScrollPhysics, ScrollContext, ScrollPosition)
Declaration
public virtual ScrollPosition createScrollPosition(ScrollPhysics physics, ScrollContext context, ScrollPosition oldPosition)
Parameters
Returns
Declaration
protected virtual void debugFillDescription(List<string> description)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.String> |
description |
|
Declaration
public virtual void detach(ScrollPosition position)
Parameters
Declaration
public override void dispose()
Overrides
Declaration
public void jumpTo(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()