getEffectiveHeight method

double getEffectiveHeight(
  1. dynamic state
)

Get effective height for a given state. Most components use the same height for all states, so this defaults to height. Override in subclasses for state-specific sizing. Accepts ComponentState enum or component-specific enum types.

Implementation

double getEffectiveHeight(dynamic state) {
  return height;
}