Module class abstract

Base class for all modules.

You can enable or disable the module by specifying enabled.

The id is given to restore the same when the module is saved to the server.

Implementers
Annotations

Constructors

Module({String? id, bool enabled = true})
const

Properties

enabled bool
true if Module is enabled.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
ID of the module.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Module Type.
no setter

Methods

fromMap(dynamic map) Module?
Convert the module information from DynamicMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → dynamic
Convert the module information to DynamicMap.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerModules(List<Module> modules) → void
Register the modules to be used.