Dart extension methods for a String.
To use this plugin, add string_ext as a dependency in your pubspec.yaml file.
Than add import 'package:string_ext/string_ext.dart'; to the file for use extension methods.
import 'package:string_ext/string_ext.dart';
void main() {
final foo = 'john';
final bar = foo.firstToUpper();
print('Name: $bar');
// Output: Name: John
}isNullOrEmpty/isNotNullNorEmpty- check for anullor empty.
firstToUpper()/firstToLower()- converts first character in the string to upper/lower case.
chunks()- splits string by chunk with defined size.