BotFile class

It creates a virtual BotFile from a file. It helps creating a PaperPlane instance from a file.

Constructors

BotFile.fromFile(File file)
Creates a BotFile from a file.
factory

Properties

data → Bot
Get a Bot object from the file.
no setter
fileName ↔ String?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

export({required Bot bot, String? fileName}) → void
Export a PaperPlane file.
import({String fileName = 'PaperPlaneBot.json'}) → Future<BotFile>
Import a PaperPlane file.