Picker constructor
Picker({
- required Widget child,
- required PickerType initialValue,
- required Color backgroundColor,
- required PickerController controller,
- double initialExtent = 0.55,
- double minExtent = 0.0,
- double mediumExtent = 0.55,
- double expandedExtent = 1.0,
- Color maxBackdropColor = Colors.black,
- ImagePickerConfigDelegate? imagePickerDelegate,
- GiphyPickerConfigDelegate? giphyPickerDelegate,
- CustomPickerConfigDelegate? customPickerDelegate,
Implementation
Picker({
required this.child,
required this.initialValue,
required this.backgroundColor,
required this.controller,
this.initialExtent = 0.55,
this.minExtent = 0.0,
this.mediumExtent = 0.55,
this.expandedExtent= 1.0,
this.maxBackdropColor = Colors.black,
this.imagePickerDelegate,
this.giphyPickerDelegate,
this.customPickerDelegate,
}) : assert(
imagePickerDelegate != null ||
giphyPickerDelegate != null ||
customPickerDelegate != null
),
assert(initialValue != PickerType.ImagePicker || imagePickerDelegate != null),
assert(initialValue != PickerType.GiphyPickerView || giphyPickerDelegate != null),
assert(initialValue != PickerType.Custom || customPickerDelegate != null);