convertToString function

String convertToString(
  1. dynamic value
)

Implementation

String convertToString(dynamic value){
  if(value is int) {
    return value.toString();
  }
  if(value==null){
    return 'not register';
  }
  return value as String;
}