ReplacementRule class final

Used to store regex patterns for replacing names during generation

Annotations
  • @immutable

Constructors

ReplacementRule.new({required RegExp pattern, required String replacement})
Constructor for ReplacementRule
const

Properties

hashCode int
The hash code for this object.
no setterinherited
pattern RegExp
Pattern to match
final
replacement String
Replacement string
final
replacementInCorrectCase String
Returns the replacement string in the correct case
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(String? input) String?
Applies the replacement rule to the given input string
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