string static method

String string(
  1. ActivityType type
)

Implementation

static String string(ActivityType type) {
  switch (type) {
    case ActivityType.Automotive:
      return "automotive";
    case ActivityType.Walking:
      return "walking";
    case ActivityType.Running:
      return "running";
    case ActivityType.Cycling:
      return "cycling";
    case ActivityType.Still:
      return "stationary";
  }
}