Tile constructor

Tile({
  1. required Coords<double> coords,
  2. required CustomPoint<num> tilePos,
  3. required ImageProvider<Object> imageProvider,
  4. required TickerProvider vsync,
  5. TileReady? tileReady,
  6. bool current = false,
  7. bool active = false,
  8. bool retain = false,
  9. bool loadError = false,
  10. 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);
}