selectInsets static method

({EdgeInsetsGeometry margin, EdgeInsetsGeometry suffixedPadding, EdgeInsetsGeometry unsuffixedPadding}) selectInsets({
  1. required bool touch,
})

The padding and margin for the item when used in a autocomplete/select.

Implementation

static ({EdgeInsetsGeometry suffixedPadding, EdgeInsetsGeometry unsuffixedPadding, EdgeInsetsGeometry margin})
selectInsets({required bool touch}) => touch
    ? (
        suffixedPadding: const EdgeInsetsDirectional.fromSTEB(10, 12.5, 6, 12.5),
        unsuffixedPadding: const .symmetric(horizontal: 10, vertical: 12.5),
        margin: const .symmetric(horizontal: 4),
      )
    : (
        suffixedPadding: const EdgeInsetsDirectional.fromSTEB(10, 6.5, 5, 6.5),
        unsuffixedPadding: const .symmetric(horizontal: 10, vertical: 6.5),
        margin: const .symmetric(horizontal: 4),
      );