PluginLoader class
Constructors
- PluginLoader(LessOptions options)
Properties
- environment ↔ Environment
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
installable
↔ Map<
String, Plugin> -
Plugins to install
read / write
- logger ↔ Logger
-
read / write
- options ↔ LessOptions
-
read / write
- pluginManager ↔ PluginManager
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
compareVersion(
List< int> aVersion, List<int> bVersion) → int - Compares the less version required by the plugin Returns -1, 0, +1
-
define(
String name, Plugin plugin) → void -
Add a
plugin
to list of available plugins, withname
Example pluginLoader.define('myPlugin', New MyPlugin()); -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
printUsage(
List< Plugin> plugins) → void -
start(
) → void - Load plugins
-
toString(
) → String -
Returns a string representation of this object.
inherited
-
tryLoadPlugin(
String name, String argument) → Plugin -
versionToString(
List< int> version) → String - Transforms a int version list to String [...]
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited