onCompleted method
Called when an animation completes.
Implementation
void onCompleted(
String id,
AnimatableProperty property,
void Function() callback,
) {
onWindowEvent(id, 'complete', (event) {
if (event.data['property'] == property.name) {
callback();
}
});
}