transitionFromViewController method

void transitionFromViewController(
  1. UIViewController fromViewController, {
  2. required UIViewController toViewController,
  3. required double duration,
  4. required UIViewAnimationOptions options,
  5. ObjCBlock<Void Function()>? animations,
  6. ObjCBlock<Void Function(Bool)>? completion,
})

transitionFromViewController:toViewController:duration:options:animations:completion:

Implementation

void transitionFromViewController(
  UIViewController fromViewController, {
  required UIViewController toViewController,
  required double duration,
  required UIViewAnimationOptions options,
  objc.ObjCBlock<ffi.Void Function()>? animations,
  objc.ObjCBlock<ffi.Void Function(ffi.Bool)>? completion,
}) {
  objc.checkOsVersionInternal(
    'UIViewController.transitionFromViewController:toViewController:duration:options:animations:completion:',
    iOS: (false, (5, 0, 0)),
  );
  _objc_msgSend_2fdtmz(
    this.ref.pointer,
    _sel_transitionFromViewController_toViewController_duration_options_animations_completion_,
    fromViewController.ref.pointer,
    toViewController.ref.pointer,
    duration,
    options.value,
    animations?.ref.pointer ?? ffi.nullptr,
    completion?.ref.pointer ?? ffi.nullptr,
  );
}