EditorController constructor

EditorController({
  1. String storyId = '',
  2. CropGridStyle cropGridStyle = const CropGridStyle(),
  3. TrimSliderStyle trimSliderStyle = const TrimSliderStyle(borderRadius: 12, onTrimmedColor: Color(0xFFEB671B), onTrimmingColor: Color(0xFFEB671B), lineColor: Color(0xFFEB671B)),
  4. Duration maxVideoDuration = const Duration(seconds: 30),
  5. Duration minVideoDuration = const Duration(seconds: 5),
  6. dynamic onElementDeleted(
    1. StoryElement
    )?,
  7. Duration maxAudioDuration = const Duration(seconds: 30),
  8. Duration minAudioDuration = const Duration(seconds: 5),
  9. bool isNeedToShowCameraPicker = true,
  10. bool isNeedVideoCameraPicker = true,
  11. PickerStyle? stylePicker,
  12. 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);