percentOf method
Get percentage of constraints width
Implementation
double percentOf(BoxConstraints constraints, {bool width = true}) {
return this * (width ? constraints.maxWidth : constraints.maxHeight) / 100;
}
Get percentage of constraints width
double percentOf(BoxConstraints constraints, {bool width = true}) {
return this * (width ? constraints.maxWidth : constraints.maxHeight) / 100;
}