transitionFromViewController method

void transitionFromViewController(
  1. UIViewController fromViewController, {
  2. required UIViewController toViewController,
  3. required double duration,
  4. required int 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 int options,
  objc.ObjCBlock<ffi.Void Function()>? animations,
  objc.ObjCBlock<ffi.Void Function(ffi.Bool)>? completion,
}) {
  final _$$ref = object$.ref;
  final _$$ref$1 = fromViewController.ref;
  final _$$ref$2 = toViewController.ref;
  final _$$ref$3 = animations?.ref;
  final _$$ref$4 = completion?.ref;
  objc.checkOsVersionInternal(
    'UIViewController.transitionFromViewController:toViewController:duration:options:animations:completion:',
    iOS: (false, (5, 0, 0)),
  );
  _objc_msgSend_2fdtmz(
    _$$ref.pointer,
    _sel_transitionFromViewController_toViewController_duration_options_animations_completion_,
    _$$ref$1.pointer,
    _$$ref$2.pointer,
    duration,
    options,
    _$$ref$3?.pointer ?? ffi.nullptr,
    _$$ref$4?.pointer ?? ffi.nullptr,
  );
}