getList method

List<double> getList(
  1. BuildContext context, {
  2. required bool forPlay,
  3. required DeviceType deviceType,
})

Implementation

List<double> getList(
  final BuildContext context, {
  required final bool forPlay,
  required final DeviceType deviceType,
}) {
  if (deviceType == DeviceType.phone) {
    return margins;
  } else if (deviceType == DeviceType.tablet) {
    return marginsTablet ?? margins;
  } else {
    return marginsDesktop ?? margins;
  }
}