removePrefix method
Remve prefix from a string.
Implementation
String removePrefix(String prefix) {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return '';
}
if (this!.startsWith(prefix)) {
return this!.substring(prefix.length);
}
return this!;
}