removeFirstEqual method

String removeFirstEqual(
  1. String? pattern
)

Removes any pattern match from the beginning of the String.

Example

String s = "djing".removeFirstEqual("dj"); // returns "ing"

Implementation

String removeFirstEqual(String? pattern) => removeFirstAny([pattern]);