Mastercard/community-pass-flutter-wrapper

Method Calls, Request and Response Objects have no Type Safety

muruthi opened this issue · 0 comments

Current architecture:

String result;
    try {
      result = await _channel.invokeMethod('getRegisterUserWithBiometrics', {
        _reliantAppGuidKey: reliantApplicationGuid,
        _programGuidKey: programGuid,
        _consentIdKey: consentId
      });
    } on PlatformException {
      result = '';
    }

Improve architecture by wrapping the method calls in a dart class at the wrapper level with requests and response types defined