ActionScrollToContainer.fromReader constructor

ActionScrollToContainer.fromReader(
  1. TeleportObjectReader reader
)

Implementation

factory ActionScrollToContainer.fromReader(TeleportObjectReader reader) {
    final instance = ActionScrollToContainer();
    TeleportField? field;
    while ((field = reader.next()) != null) {
        if (field!.isNull) continue;
        switch (field.fieldId) {
            case fieldIdContainerId: {
                instance.containerId = field.asString();
                break;
            }
        }
    }
    return instance;
}