DataWedgeProfileBuilder class
Builder class for creating DataWedgeProfileConfiguration objects.
This provides a fluent API for constructing profile configurations.
Example:
final config = DataWedgeProfileBuilder(profileName: 'MyProfile')
.setProfileEnabled(true)
.addPlugin(DataWedgePluginConfiguration(
pluginName: DataWedgePluginName.barcode,
paramList: {'scanner_selection': 'auto'},
))
.addAppAssociation(DataWedgeAppAssociation(
packageName: 'com.example.myapp',
))
.build();
Constructors
- DataWedgeProfileBuilder({required String profileName, String configMode = DataWedgeConfigMode.createIfNotExist})
- Creates a new profile builder.
Properties
- configMode → String
-
How the profile configuration should be applied.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- profileName → String
-
The name of the profile being built.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAppAssociation(
DataWedgeAppAssociation association) → DataWedgeProfileBuilder - Adds an app association to the profile.
-
addPlugin(
DataWedgePluginConfiguration plugin) → DataWedgeProfileBuilder - Adds a plugin configuration to the profile.
-
build(
) → DataWedgeProfileConfiguration - Builds and returns the DataWedgeProfileConfiguration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setDataCapturePlus(
Map< String, dynamic> dcp) → DataWedgeProfileBuilder - Sets the DataCapture Plus configuration.
-
setEnterpriseKeyboard(
Map< String, dynamic> ekb) → DataWedgeProfileBuilder - Sets the Enterprise Keyboard configuration.
-
setProfileEnabled(
bool enabled) → DataWedgeProfileBuilder - Sets whether the profile is enabled.
-
setResetConfig(
bool reset) → DataWedgeProfileBuilder - Sets whether to reset the configuration before applying.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited