openCSDocumentosCopy method

  1. @override
Future<CSDocumentosCopyResult> openCSDocumentosCopy(
  1. String clientId,
  2. String clientSecretId,
  3. String identifierId,
  4. String cpf,
  5. Color primaryColor,
  6. Color secondaryColor,
  7. Color tertiaryColor,
  8. Color titleColor,
  9. 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";
}