enterScanning method

void enterScanning(
  1. RoomModel model,
  2. StationData stationModel,
  3. Map dataSource,
  4. dynamic callback(
    1. bool isSuccess,
    2. String msg
    ),
)

Implementation

void enterScanning(RoomModel model, StationData stationModel, Map dataSource,
    Function(bool isSuccess, String msg) callback) async {
  logic!.model = await proccessScanModel(model, stationModel, dataSource);
  if (logic!.model!.scan!) {
    logic!.enterScanning((isSuccess, msg) => callback);
  } else {
    logic!.scanResultsList((isSuccess, msg) => callback);
  }
}