tUrlOrNull function

String? tUrlOrNull(
  1. dynamic val
)

Implementation

String? tUrlOrNull(val) {
  final String str = tString(val);
  if (str.toLowerCase().startsWith('http')) {
    return str;
  }
  return null;
}