updateSize method

FSize updateSize(
  1. String newValue,
  2. BuildContext context,
  3. DeviceType deviceType
)

Implementation

FSize updateSize(
  final String newValue,
  final BuildContext context,
  final frame.DeviceType deviceType,
) {
  if (deviceType == frame.DeviceType.phone) {
    return copyWith(size: newValue);
  } else if (deviceType == frame.DeviceType.tablet) {
    return copyWith(sizeTablet: newValue);
  } else {
    return copyWith(sizeDesktop: newValue);
  }
}