AnimationFrameProvider constructor

AnimationFrameProvider({
  1. void cancelAnimationFrame(
    1. num
    )?,
  2. num requestAnimationFrame(
    1. FrameRequestCallback
    )?,
})

Implementation

factory AnimationFrameProvider({
  void Function(_i2.num)? cancelAnimationFrame,
  _i2.num Function(_i3.FrameRequestCallback)? requestAnimationFrame,
}) =>
    AnimationFrameProvider._(
      cancelAnimationFrame: cancelAnimationFrame == null
          ? null
          : _i4.allowInterop(cancelAnimationFrame),
      requestAnimationFrame: requestAnimationFrame == null
          ? null
          : _i4.allowInterop(requestAnimationFrame),
    );