EditorController constructor
EditorController({
- String storyId = '',
- CropGridStyle cropGridStyle = const CropGridStyle(),
- TrimSliderStyle trimSliderStyle = const TrimSliderStyle(borderRadius: 12, onTrimmedColor: Color(0xFFEB671B), onTrimmingColor: Color(0xFFEB671B), lineColor: Color(0xFFEB671B)),
- Duration maxVideoDuration = const Duration(seconds: 30),
- Duration minVideoDuration = const Duration(seconds: 5),
- dynamic onElementDeleted()?,
- Duration maxAudioDuration = const Duration(seconds: 30),
- Duration minAudioDuration = const Duration(seconds: 5),
- bool isNeedToShowCameraPicker = true,
- bool isNeedVideoCameraPicker = true,
- PickerStyle? stylePicker,
- CameraStyle? cameraStylePicker,
Constructor
Implementation
EditorController({
String storyId = '',
this.cropGridStyle = const CropGridStyle(),
this.trimSliderStyle = const TrimSliderStyle(
borderRadius: 12,
onTrimmedColor: Color(0xFFEB671B),
onTrimmingColor: Color(0xFFEB671B),
lineColor: Color(0xFFEB671B),
),
this.maxVideoDuration = const Duration(seconds: 30),
this.minVideoDuration = const Duration(seconds: 5),
this.onElementDeleted,
this.maxAudioDuration = const Duration(seconds: 30),
this.minAudioDuration = const Duration(seconds: 5),
this.isNeedToShowCameraPicker = true,
this.isNeedVideoCameraPicker = true,
this.stylePicker,
this.cameraStylePicker,
}) : _storyModel = StoryModel(id: storyId);