Skip to content

Instantly share code, notes, and snippets.

@truongsinh
Last active May 15, 2019 00:41
Show Gist options
  • Save truongsinh/6ff96a155579bfb203b916c93d450a54 to your computer and use it in GitHub Desktop.
Save truongsinh/6ff96a155579bfb203b916c93d450a54 to your computer and use it in GitHub Desktop.
Flutter Platform Channels with Protobuf
Dart, Android iOS
null null nil (NSNull when nested)
bool java.lang.Boolean NSNumber numberWithBool:
int java.lang.Integer NSNumber numberWithInt:
int, if 32 bits not enough java.lang.Long NSNumber numberWithLong:
double java.lang.Double NSNumber numberWithDouble:
String java.lang.String NSString
Uint8List byte[] FlutterStandardTypedData typedDataWithBytes:
Int32List int[] FlutterStandardTypedData typedDataWithInt32:
Int64List long[] FlutterStandardTypedData typedDataWithInt64:
Float64List double[] FlutterStandardTypedData typedDataWithFloat64:
List java.util.ArrayList NSArray
Map java.util.HashMap NSDictionary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment