zoukankan      html  css  js  c++  java
  • Flutter数据类型与iOSAndroid对应关系

    Dart数据类型与iOS/Android转换关系表

    The following table shows how Dart values are received on the platform side and vice versa:

    DartJavaKotlinObj-CSwift
    null null null nil (NSNull when nested) nil
    bool java.lang.Boolean Boolean NSNumber numberWithBool: NSNumber(value: Bool)
    int java.lang.Integer Int NSNumber numberWithInt: NSNumber(value: Int32)
    int, if 32 bits not enough java.lang.Long Long NSNumber numberWithLong: NSNumber(value: Int)
    double java.lang.Double Double NSNumber numberWithDouble: NSNumber(value: Double)
    String java.lang.String String NSString String
    Uint8List byte[] ByteArray FlutterStandardTypedData typedDataWithBytes: FlutterStandardTypedData(bytes: Data)
    Int32List int[] IntArray FlutterStandardTypedData typedDataWithInt32: FlutterStandardTypedData(int32: Data)
    Int64List long[] LongArray FlutterStandardTypedData typedDataWithInt64: FlutterStandardTypedData(int64: Data)
    Float64List double[] DoubleArray FlutterStandardTypedData typedDataWithFloat64: FlutterStandardTypedData(float64: Data)
    List java.util.ArrayList List NSArray Array
    Map java.util.HashMap HashMap NSDictionary Dictionary
  • 相关阅读:
    策略模式浅谈
    J.U.C 系列之 Tools
    RCP 主题切换
    C#利用WebClient 两种方式下载文件
    淘宝联盟
    微信公众账号开发练习1成为开发者
    第一次使用mssql游标
    C#利用com操作excel释放进程
    免费空间主机屋试用体验
    Ajax简单聊天B/S
  • 原文地址:https://www.cnblogs.com/ciml/p/13269838.html
Copyright © 2011-2022 走看看