BotObject class
This class represents any type of object in a bot.
- Inheritance
-
- Object
- BotData
- BotElementData
- BotObject
Constructors
-
BotObject.new({String? id, required String objectName, required List<
BotTypedObjectData> objects, BotObjectType? objectType, bool bypassNamer = false}) - BotObject.fromJson(Map json, {String? botId})
- create a new object from json representation.
Properties
- bot ↔ Bot?
-
the bot that this object belongs to.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
the id of this object.
getter/setter pair
- objectName ↔ String
-
the name of this object.
getter/setter pair
-
objects
↔ List<
BotTypedObjectData> -
the list of objects in this object.
getter/setter pair
- objectType ↔ BotObjectType
-
the type of this object.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
belongToBot(
Bot bot) → void -
set the bot that this object belongs to.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reload(
) → Future< void> - reload this object from the server, keeping it up to date.
-
toJson(
) → Map -
convert this object to json representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited