DBusCodeGenerator class
Object to generate Dart code to access D-Bus objects.
Constructors
- DBusCodeGenerator(DBusIntrospectNode node, {String? comment, String? className})
-
Creates a new object to generate code from node.
className
is the name of the generated class, if not provided it will be inferred from node. If providedcomment
is added to the top of the source.
Properties
- className ↔ String
-
Class name used in generated code.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- node → DBusIntrospectNode
-
Introspection data used to generate source code.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
generateClientSource(
) → String - Generates Dart code for a client to access the given D-Bus interface.
-
generateServerSource(
) → String - Generates Dart code for a server to expose objects on the given D-Bus interface.
-
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