SourceText class

Represents a source text entry in a text format. Can be referenced by sources of SourceFile or patchouliAddons of ModSourceInfo. Cannot be repeatedly referenced.

Constructors

SourceText({required String uuid, required String source, required List<MinecraftVersion> gameVersions, required String key, required SourceTextType type})
const
SourceText.fromJson(String source)
factory
SourceText.fromMap(Map<String, dynamic> map)
factory

Properties

gameVersions List<MinecraftVersion>
final
hashCode int
The hash code for this object.
no setteroverride
key String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
Text for translation.
final
type SourceTextType
final
uuid String
final

Methods

copyWith({String? uuid, String? source, List<MinecraftVersion>? gameVersions, String? key, SourceTextType? type}) SourceText
getTranslations({Locale? language, int limit = 50, int skip = 0}) Future<ListModelResponse<Translation>>
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<SourceText>
list({String? source, String? key, int limit = 50, int skip = 0}) Future<ListModelResponse<SourceText>>