removeFirst method

String removeFirst(
  1. String source
)

Example: expect(FluentRegex().literal('a').removeFirst('bababa'), 'bbaba');

Implementation

String removeFirst(String source) => source.replaceFirst(_toRegExp(), '');