PickerConfig constructor

PickerConfig({
  1. Color? backgroundColor,
  2. BaseTextStyle? cancelTextStyle,
  3. BaseTextStyle? confirmTextStyle,
  4. BaseTextStyle? titleTextStyle,
  5. double? pickerHeight,
  6. double? titleHeight,
  7. double? itemHeight,
  8. BaseTextStyle? itemTextStyle,
  9. BaseTextStyle? itemTextSelectedStyle,
  10. Color? dividerColor,
  11. double? cornerRadius,
  12. String configId = GLOBAL_CONFIG_ID,
})

遵循外部主题配置 默认为 BasePickerConfigUtils.defaultPickerConfig

Implementation

PickerConfig({
  Color? backgroundColor,
  BaseTextStyle? cancelTextStyle,
  BaseTextStyle? confirmTextStyle,
  BaseTextStyle? titleTextStyle,
  double? pickerHeight,
  double? titleHeight,
  double? itemHeight,
  BaseTextStyle? itemTextStyle,
  BaseTextStyle? itemTextSelectedStyle,
  Color? dividerColor,
  double? cornerRadius,
  String configId = GLOBAL_CONFIG_ID,
})  : _backgroundColor = backgroundColor,
      _cancelTextStyle = cancelTextStyle,
      _confirmTextStyle = confirmTextStyle,
      _titleTextStyle = titleTextStyle,
      _pickerHeight = pickerHeight,
      _titleHeight = titleHeight,
      _itemHeight = itemHeight,
      _itemTextStyle = itemTextStyle,
      _itemTextSelectedStyle = itemTextSelectedStyle,
      _dividerColor = dividerColor,
      _cornerRadius = cornerRadius,
      super(configId: configId);