toMethodChannelMap method

Map<String, dynamic> toMethodChannelMap()

Converts Android-specific options to a method-channel friendly map.

Implementation

Map<String, dynamic> toMethodChannelMap() {
  return {
    if (cancelButtonText != null) 'cancelButtonText': cancelButtonText,
    if (allowDeviceCredentials != null)
      'allowDeviceCredentials': allowDeviceCredentials,
  };
}