Snapshot class Null safety

Constructors

Snapshot(String id, {String? render, String? layer, List<int>? image})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
id String
final
image List<int>?
final
layer String?
final
render String?
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type SnapshotType
final, read / write, late

Methods

getSnapshotData() → dynamic
matchesSnapshot(Snapshot newSnapshot) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
save(SnapshotTestOptions opts, {bool? asNew}) Future<bool>
saveImage(SnapshotTestOptions opts, List<int> img, {bool? asNew}) Future<bool>
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

asIntList(List list) List<int>
getExtenstion(SnapshotType type) String
getFileName(String id, SnapshotType type) String
getImgFileName(String id) String
getNewFileName(String id, SnapshotType type) String
getNewImgFileName(String id) String
getSnapshotFile(String filename, SnapshotTestOptions opts) Future<File>
getSnapshotFromDriver(String id, SnapshotType type, FlutterDriver driver, List<RegExp>? removeExps) Future<Snapshot?>
getSnapshotFromFile(String id, SnapshotType type, SnapshotTestOptions options) Future<Snapshot?>