logSat method
Implementation
@override
Future<ResponseLog?> logSat(String codigoAtivacao) async {
final consultarLog = await methodChannel
.invokeMethod<String>('logSat', {'codigoAtivacao': codigoAtivacao});
if (consultarLog != null) {
List<String?> consulta = consultarLog.split('|');
if (consulta.length < 2) {
log(consulta.toString());
return null;
}
return ResponseLog.fromSat(consulta);
} else {
return null;
}
}