SteamStruct class

Struct and CallbackStruct definition for steam api

Available extensions

Constructors

SteamStruct.new({required String name, int callbackId = -1, List<SteamField> fields = const [], List<SteamMethod> methods = const [], List<SteamEnum> enums = const [], List<SteamConst> consts = const []})
Creates a SteamStruct. This constructor is used for manual SteamStruct creation
SteamStruct.fromJson(Map<String, dynamic> json)
Creates a SteamStruct from json

Properties

callbackId int
callback id of the callback struct, if it is not a callback struct this is filled with -1
getter/setter pair
consts List<SteamConst>
list of SteamConsts of the struct
getter/setter pair
enums List<SteamEnum>
list of SteamEnums of the struct
getter/setter pair
fields List<SteamField>
list of SteamFields of the struct
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
methods List<SteamMethod>
list of SteamMethods of the struct
getter/setter pair
name String
name of the struct
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate({required IOSink fileSink, required String target, Set<String> enumSet = const {}, Set<String> structSet = const {}, Set<String> callbackStructSet = const {}}) → void

Available on SteamStruct, provided by the SteamStructExtensions extension

Generates necessary code for a SteamStruct
generateFile({required String path, required String target, required IOSink exportSink, Set<String> enumSet = const {}, Set<String> structSet = const {}, Set<String> callbackStructSet = const {}}) Future<void>

Available on SteamStruct, provided by the SteamStructExtensions extension

Generates necessary file and code for a SteamStruct
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