resolveSize method

Size resolveSize(
  1. Port port
)

Resolves the effective size for a port.

Uses the port's own size if set, otherwise falls back to the theme's size. This is the canonical method for port size resolution.

Implementation

Size resolveSize(Port port) => port.size ?? size;