fitWidth method

  1. @override
int fitWidth()
override

Returns the width this component should occupy based on its content or layout rules.

Implementation

@override
int fitWidth() => prefixCheckboxLength + component.label.length;