parameters property

Map<String, dynamic>? parameters
final

The arguments values to use while injecting. Example:

Injector(Text.new, parameters: {
  '0': 'Hello', // by index
  'style': TextStyle(), // by name
  '$TextAlign': TextAlign.center, // by type
});

Implementation

final Map<String, dynamic>? parameters;