Utils class

Constructors

Utils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

videoRids List<String>
final

Static Methods

buildUri(String uriString, {required String token, ConnectOptions? connectOptions, bool reconnect = false, bool validate = false, bool forceSecure = false}) Future<Uri>
computeVideoEncodings({required bool isScreenShare, VideoDimensions? dimensions, VideoPublishOptions? options}) List<RTCRtpEncoding>?
computeVideoLayers(VideoDimensions dimensions, List<RTCRtpEncoding>? encodings) List<VideoLayer>
createDebounceFunc<T>(dynamic f(T), {dynamic cancelFunc(Function)?, required Duration wait}) → dynamic Function(T)
encodingsFromPresets(VideoDimensions dimensions, {required List<VideoParameters> presets}) List<RTCRtpEncoding>
findEvenScaleDownBy(VideoDimensions sourceDimensions, VideoDimensions targetDimensions) double
retry<T>(RetryFuture<T> future, {int tries = 1, Duration delay = const Duration(seconds: 1), RetryCondition? retryCondition}) Future<T>
Returns a Future that will retry future while it throws for a maximum of tries times with delay in between. If all the attempts throws, the future will throw a List of the thrown objects by the future.
videoQualityForRid(String? rid) VideoQuality?