RelaxerClassConfig class

Configuration for a class to include in reduced relaxer/RC-2 generation.

Used only when BridgeConfig.generateAllRelaxers is false. Each entry names a concrete bridged class that should remain an eligible generic type-argument in the reduced relaxer factory and RC-2 constructor switches, on top of the type-args discovered from real extraction sites.

Accepts a bare string (just the class name) or a map, mirroring ProxyClassConfig.fromYaml:

d4rtgen:
  generateAllRelaxers: false
  relaxerClasses:
    - AlertDialog
    - className: SnackBar

Constructors

RelaxerClassConfig({required String className})
const
RelaxerClassConfig.fromJson(Map<String, dynamic> json)
factory
RelaxerClassConfig.fromYaml(Object value)
Parse from a simple string (just the class name) or a map.
factory

Properties

className → String
The class name to keep as an eligible relaxer/RC-2 type argument.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited