safeSubString method
Guvenli sekilde kirpar
Implementation
String? safeSubString(int start, int end) {
if (this == null) return null;
if (start < 0 || end < 0) return '';
if (this!.length < start) return '';
if (this!.length < end) end = this!.length;
return this!.substring(start, end);
}