TickerProvider class
An interface implemented by classes that can vend Ticker objects.
Tickers can be used by any object that wants to be notified whenever a frame triggers, but are most commonly used indirectly via an AnimationController. AnimationControllers need a TickerProvider to obtain their Ticker. If you are creating an AnimationController from a State, then you can use the TickerProviderStateMixin and SingleTickerProviderStateMixin classes to obtain a suitable TickerProvider. The widget test framework WidgetTester object can be used as a ticker provider in the context of tests. In other contexts, you will have to either pass a TickerProvider from a higher level (e.g. indirectly from a State that mixes in TickerProviderStateMixin), or create a custom TickerProvider subclass.
- Implementers
Constructors
- TickerProvider()
- 
          Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
          const
Properties
- hashCode → int
- 
          The hash code for this object. [...]
          read-only, inherited
- runtimeType → Type
- 
          A representation of the runtime type of the object.
          read-only, inherited
Methods
- 
          createTicker(TickerCallback onTick) → Ticker 
- Creates a ticker with the given callback. [...]
- 
          noSuchMethod(Invocation invocation) → dynamic 
- 
          Invoked when a non-existent method or property is accessed. [...]
          inherited
- 
          toString() → String 
- 
          Returns a string representation of this object.
          inherited
Operators
- 
          operator ==(dynamic other) → bool 
- 
          The equality operator. [...]
          inherited