getEffectiveWidth method

double getEffectiveWidth(
  1. dynamic state
)

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

Implementation

double getEffectiveWidth(dynamic state) {
  return width;
}