FPickerStyle.inherit constructor

FPickerStyle.inherit({
  1. required FColors colors,
  2. required FStyle style,
  3. required FTypography typography,
  4. required bool touch,
})

Creates a FPickerStyle that inherits its properties.

Implementation

FPickerStyle.inherit({
  required FColors colors,
  required FStyle style,
  required FTypography typography,
  required bool touch,
}) : this(
       textStyle: touch
           ? typography.lg.copyWith(fontWeight: .w500, height: 1.25)
           : typography.sm.copyWith(fontWeight: .w500),
       selectionDecoration: ShapeDecoration(
         shape: RoundedSuperellipseBorder(borderRadius: style.borderRadius.md),
         color: colors.muted,
       ),
       focusedOutlineStyle: style.focusedOutlineStyle,
       hapticFeedback: style.hapticFeedback.selectionClick,
     );