getStringForDropDown method

String getStringForDropDown(
  1. BuildContext context,
  2. DeviceType deviceType
)

Implementation

String getStringForDropDown(
    final BuildContext context, final DeviceType deviceType) {
  if (deviceType == DeviceType.phone) {
    return convertValueToDropDown(align!);
  } else if (deviceType == DeviceType.tablet) {
    return convertValueToDropDown(alignTablet ?? align!);
  } else {
    return convertValueToDropDown(alignDesktop ?? align!);
  }
}