obscuringCharacter property Null safety

String obscuringCharacter

Character used for obscuring text if obscureText is true.

Cannot be null, and must have a length of exactly one.

Implementation

String get obscuringCharacter => _obscuringCharacter;
void obscuringCharacter=(String value)

Implementation

set obscuringCharacter(String value) {
  if (_obscuringCharacter == value) {
    return;
  }
  assert(value != null && value.characters.length == 1);
  _obscuringCharacter = value;
  markNeedsLayout();
}