animateKeyframesWithDuration static method

void animateKeyframesWithDuration(
  1. double duration, {
  2. required double delay,
  3. required UIViewKeyframeAnimationOptions options,
  4. required ObjCBlock<Void Function()> animations,
  5. ObjCBlock<Void Function(Bool)>? completion,
})

animateKeyframesWithDuration:delay:options:animations:completion:

Implementation

static void animateKeyframesWithDuration(
  double duration, {
  required double delay,
  required UIViewKeyframeAnimationOptions options,
  required objc.ObjCBlock<ffi.Void Function()> animations,
  objc.ObjCBlock<ffi.Void Function(ffi.Bool)>? completion,
}) {
  objc.checkOsVersionInternal(
    'UIView.animateKeyframesWithDuration:delay:options:animations:completion:',
    iOS: (false, (7, 0, 0)),
  );
  _objc_msgSend_ciuhtc(
    _class_UIView,
    _sel_animateKeyframesWithDuration_delay_options_animations_completion_,
    duration,
    delay,
    options.value,
    animations.ref.pointer,
    completion?.ref.pointer ?? ffi.nullptr,
  );
}