associarAssinatura method
Implementation
@override
Future<ResponseAssinatura?> associarAssinatura(
{required Map<String, dynamic> assinatura}) async {
final ativarSat = await methodChannel
.invokeMethod<String>('associarAssinatura', {'associar': assinatura});
if (ativarSat != null) {
List<String?> consulta = ativarSat.split('|');
if (consulta.length < 2) {
log(consulta.toString());
return null;
}
return ResponseAssinatura.fromSat(consulta);
} else {
return null;
}
}