getList method
List<double>
getList(
- BuildContext context, {
- required bool forPlay,
- 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;
}
}