Resolution.fromSize constructor
Resolution.fromSize(
- String screenResolution
Creates Resolution object from String in format
Implementation
factory Resolution.fromSize(String screenResolution) {
final dimensions = screenResolution.split('x');
return Resolution(double.parse(dimensions[0]), double.parse(dimensions[1]));
}