parseToUri<T> method

  1. @override
String parseToUri<T>(
  1. T? param
)
override

Implementation

@override
String parseToUri<T>(T? param) {
  if (param == null) return '';

  switch (T) {
    case String:
      return param as String;
    case int:
      return param.toString();
    case double:
      return (param as double).toStringAsFixed(2);
    case bool:
      return (param as bool).toString();
    default:
      return param.toString();
  }
}