fromData static method

ModeInfo fromData(
  1. ModeInfoDataArgs data
)

Implementation

static ModeInfo fromData(ModeInfoDataArgs data) {
  if (data.single != null) {
    return ModeInfo(data.single);
  }

  // if (data.Multi != null)
  // {
  //     return  ModeInfo(data.Multi);
  // }

  throw Exception("Must Single or Multi");
}