openCSDocumentosCopy method
Future<CSDocumentosCopyResult>
openCSDocumentosCopy(
- String clientId,
- String clientSecretId,
- String identifierId,
- String cpf,
- Color primaryColor,
- Color secondaryColor,
- Color tertiaryColor,
- Color titleColor,
- Color paragraphColor,
override
Implementation
@override
Future<CSDocumentosCopyResult> openCSDocumentosCopy(
String clientId,
String clientSecretId,
String identifierId,
String cpf,
Color primaryColor,
Color secondaryColor,
Color tertiaryColor,
Color titleColor,
Color paragraphColor) async {
final Map<dynamic, dynamic>? response =
await methodChannel.invokeMapMethod('openCSDocumentosCopy', {
"clientId": clientId,
"clientSecretId": clientSecretId,
"identifierId": identifierId,
"cpf": cpf,
"primaryColor": primaryColor.toHexString(enableAlpha: false),
"secondaryColor": secondaryColor.toHexString(enableAlpha: false),
"tertiaryColor": tertiaryColor.toHexString(enableAlpha: false),
"titleColor": titleColor.toHexString(enableAlpha: false),
"paragraphColor": paragraphColor.toHexString(enableAlpha: false)
});
if (response != null) {
return CSDocumentosCopyResult.fromJson(
response.cast().map((k, v) => MapEntry(k.toString(), v)));
}
throw "No response from native side";
}