calculateHeight static method
Helper to calculate the height of the ContactInput widget
Implementation
static double calculateHeight({
required bool showDescriptionField,
required bool showTypeSelectionField,
}) {
double totalHeight = 210.0;
if (!showDescriptionField) {
totalHeight -= 85.0;
}
return totalHeight;
}