getAnimationDuration method

  1. @override
Future<double> getAnimationDuration(
  1. ThermionEntity entity,
  2. int animationIndex
)
override

Returns the length (in seconds) of the animation at the given index.

Implementation

@override
Future<double> getAnimationDuration(
    ThermionEntity entity, int animationIndex) async {
  return (await _shim.getAnimationDuration(entity, animationIndex).toDart)
      .toDartDouble;
}