PickerController class

Inheritance

Constructors

PickerController({dynamic onGiphyReceived(String? gif)?, dynamic onImageReceived(List<AssetEntity>? images)?})

Properties

gifController → GiphyPickerController?
Returns the gify controller
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
imageController → ImagePickerController?
Returns the image picker controller
no setter
isOpen → bool
no setter
onGiphyReceived ↔ dynamic Function(String? gif)?
If a Giphy is selected inside of the GiphyPicker
getter/setter pair
onImageReceived ↔ dynamic Function(List<AssetEntity>? images)?
If a image is selected inside of the ImagePicker
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → PickerType?
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearAll() → void
Clear every asset
clearAssetEntity(AssetEntity asset) → void
Clears an indivudal asset
closeCustomPicker() → void
Close the custom picker (specified by user)
closeGiphyPicker() → void
Close the giphy picker
closeImagePicker() → void
Close the image picker
closePicker() → void
dispose() → void
Discards any resources used by the object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
openCustomPicker(bool? overrideLock) → void
Open the custom picker (specified by user)
openGiphyPicker(bool? overrideLock) → void
Open the giphy picker
openImagePicker({DurationConstraint duration = const DurationConstraint(max: Duration(minutes: 1)), List<AssetEntity> selectedAssets = const [], int imageCount = 5, bool onlyPhotos = false, bool? overrideLock}) → void
openPicker({PickerType? index, List<AssetEntity>? selectedAssets, String? gif, DurationConstraint? duration, int? imageCount, bool? onlyPhotos, bool? overrideLock}) → void
Initially open picker
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
snap(PickerExpansion extent) → void
Snaps the current sheet controller to an extent Picker must be open to an index
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited