rightTime function

String? rightTime(
  1. String? time
)

Implementation

String? rightTime(String? time) {
  String? rightTime = time;
  if (time != null && time != "" && time.contains(".")) {
    rightTime = time.split(".")[0];
  }
  return rightTime;
}