Sc2Preview class Null safety

The SC2 has problems with dio, which is used for HTTP connections this class uses the http package instead of dio. there is a known problem with an error message when closing the stream, but the application appears to work.

Inheritance

Constructors

Sc2Preview()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

client Client
read / write
keepRunning bool
read / write, override

Static Methods

getFrames({required int frames, required int frameDelay, required Stream dataStream, required StreamController controller}) → void
receive a data stream from the camera parse the individual JPEG frames add each stream to the controller stream
override
getLivePreview({int frames = 5, dynamic frameDelay = 34, required StreamController controller}) → void
initiate connection to camera and get the stream this is different for Z1/V and SC2
override
stopPreview() → void
override