onOrientation<T> method

T onOrientation<T>({
  1. InitFactory<T>? portrait,
  2. InitFactory<T>? landscape,
  3. dynamic args,
})

Implementation

T onOrientation<T>(
    {InitFactory<T>? portrait, InitFactory<T>? landscape, dynamic args}) {
  if (this.portrait) {
    return portrait!(args);
  }

  return landscape!(args);
}