updateDirection method

FDirection updateDirection(
  1. Axis newValue,
  2. BuildContext context,
  3. DeviceType deviceType
)

Implementation

FDirection updateDirection(
  final Axis newValue,
  final BuildContext context,
  final frame.DeviceType deviceType,
) {
  if (deviceType == frame.DeviceType.phone) {
    return copyWith(direction: newValue);
  } else if (deviceType == frame.DeviceType.tablet) {
    return copyWith(directionTablet: newValue);
  } else {
    return copyWith(directionDesktop: newValue);
  }
}