WidgetRecorderController class

Simple controller for recording widgets

Constructors

WidgetRecorderController({dynamic onComplete(String path)?, dynamic onError(String error)?, bool recordAudio = false, Widget permissionDeniedDialog(BuildContext context, VoidCallback openSettings)?})

Properties

fps int
Set frames per second (default: 60)
no getter
hashCode int
The hash code for this object.
no setterinherited
isRecording bool
Check if currently recording
no setter
onComplete → dynamic Function(String path)?
final
onError → dynamic Function(String error)?
final
permissionDeniedDialog Widget Function(BuildContext context, VoidCallback openSettings)?
final
recordAudio bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
hasPermission() Future<bool>
Check if microphone permission is granted
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSettings() Future<void>
Open app settings (useful when permission is permanently denied)
requestPermission() Future<bool>
Request microphone permission (returns true if granted)
start() Future<void>
Start recording the widget
stop() Future<String?>
Stop recording and get the video file path
toString() String
A string representation of this object.
inherited

Operators

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