copy method

StreamChar copy({
  1. String? lexeme,
  2. StreamPos? pos,
})

Implementation

StreamChar copy({String? lexeme, StreamPos? pos}) =>
    StreamChar(lexeme ?? this.lexeme, pos ?? this.pos);