ByDebugId constructor

const ByDebugId(
  1. String _debugId, {
  2. bool useDash = false,
  3. bool usePlain = false,
  4. bool useCamelCase = false,
})

@ByDebugId('x') looks for debug id attribute. By default (no args), looks for 'debugid=x', 'debug-id=x', or 'debugId="x"'.

Args: useDash looks for 'debug-id' usePlain looks for 'debugid' useCamelCase looks for 'debugId'

If one or more named args are provided, looks for only those debug ids: Example: @ByDebugId('x', useDash: true, usePlain: true) looks for 'debug-id=x' or 'debugid=x'

Implementation

const ByDebugId(this._debugId,
    {this.useDash = false, this.usePlain = false, this.useCamelCase = false});