value method

T value(
  1. BuildContext context
)

Implementation

T value(BuildContext context) {
  if (Screen.of(context).isPortrait) {
    return portrait;
  } else {
    return landscape;
  }
}