Animation$cast function

Animation? Animation$cast(
  1. dynamic value
)

Implementation

Animation? Animation$cast(value) {
  if (value == Animation.BOUNCE) return Animation.BOUNCE;
  if (value == Animation.DROP) return Animation.DROP;
  return null;
}