Tile constructor
Tile({
- required Coords<
double> coords, - required CustomPoint<
num> tilePos, - required ImageProvider<
Object> imageProvider, - required TickerProvider vsync,
- TileReady? tileReady,
- bool current = false,
- bool active = false,
- bool retain = false,
- bool loadError = false,
- Duration? duration,
Implementation
Tile({
required this.coords,
required this.tilePos,
required this.imageProvider,
required final TickerProvider vsync,
this.tileReady,
this.current = false,
this.active = false,
this.retain = false,
this.loadError = false,
final Duration? duration,
}) : animationController = duration != null
? AnimationController(duration: duration, vsync: vsync)
: null {
animationController?.addStatusListener(_onAnimateEnd);
}