getAnimationPlayerOfNativePtr static method

AnimationPlayerElement getAnimationPlayerOfNativePtr(
  1. Pointer<NativeAnimationElement> nativeAnimationElement
)

Implementation

static AnimationPlayerElement getAnimationPlayerOfNativePtr(
    Pointer<NativeAnimationElement> nativeAnimationElement) {
  AnimationPlayerElement? animationPlayerElement =
      _nativeMap[nativeAnimationElement.address];
  if (animationPlayerElement == null) {
    throw FlutterError(
        'Can not get animationPlayerElement from nativeElement: $nativeAnimationElement');
  }
  return animationPlayerElement;
}