DesignSize.fromDimensions constructor
DesignSize.fromDimensions({})
Creates a design size from width and height values.
Implementation
DesignSize.fromDimensions({
double phoneWidth = 375,
double phoneHeight = 812,
double tabletWidth = 768,
double tabletHeight = 1024,
double desktopWidth = 1440,
double desktopHeight = 900,
}) : phone = Size(phoneWidth, phoneHeight),
tablet = Size(tabletWidth, tabletHeight),
desktop = Size(desktopWidth, desktopHeight);