Package-level declarations
Types
A polygon that is drawn the way a pen would draw it: the outline is drawn round from a corner, and when it has gone all the way round the fill comes in (fades in). What the screen shows at a moment of the effect.
Plays DrawOutline on the polygon with the id of polygon in repository: register it with the host's AnimationController and every tick puts in the repository what DrawOutline.at gives for how far along it is, in the place of the polygon (the other shapes stay as they are). When it is over, the repository holds polygon again and onFinished is called; one that has finished does nothing more, so the host can unregister it there.
How a polygon's outline is drawn by DrawOutline.
Plays RouteMotion on route in repository: register it with the host's AnimationController and every tick puts in the repository, besides the shapes that are already there, what RouteMotion.at gives for how far along the trip is. When it is over, the repository holds what the trip leaves (RouteOptions.keepTrail, RouteOptions.keepVehicle) and onFinished is called; one that has finished does nothing more, so the host can unregister it there.
A vehicle (a plane, a car, a ship) going along a route, and the line it leaves behind: what the screen shows at a moment of the trip.
How a vehicle's trip along a route looks, for RouteMotion.
The drawing at one moment: every shape, in drawing order. The shapes are immutable, so a snapshot is not a copy of anything, it is the list itself, and holding one costs nothing. To keep one beyond the run of the app, write it with the serialization module (DrawJson).
Plays the drawing in repository from the snapshot from to to: register it with the host's AnimationController and every tick sets the shapes to what Morph gives for how far along it is (the curve of spec decides how that moves). When it is over, repository holds exactly to and onFinished is called; a transition that has finished does nothing more, so the host can unregister it there.