addPrefix method

String addPrefix({
  1. bool isPositive = true,
})

Prepend option name with prefix depending on flag isPositive

Implementation

String addPrefix({bool isPositive = true}) =>
    (isEmpty ? this : (isPositive ? prefix : negPrefix)) + this;