SourceFile class

Represents the source language file in a text format.

Constructors

SourceFile({required String uuid, required String modSourceInfoUUID, required String storageUUID, required String path, required SourceFileType type, required List<String> sources})
const
SourceFile.fromJson(String source)
factory
SourceFile.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
modSourceInfoUUID String
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceInfo Future<ModSourceInfo?>
no setter
sources List<String>
SourceText included in the file.
final
sourceTexts Future<List<SourceText>>
no setter
storage Future<Storage?>
no setter
storageUUID String
final
type SourceFileType
final
uuid String
final

Methods

copyWith({String? uuid, String? modSourceInfoUUID, String? storageUUID, String? path, SourceFileType? type, List<String>? sources}) SourceFile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

getByUUID(String uuid) Future<SourceFile>
list({ModSourceInfo? modSourceInfo, int limit = 50, int skip = 0}) Future<ListModelResponse<SourceFile>>