DartRepresentationOf 构造函数

const DartRepresentationOf(
  1. String nativeType
)

表示与 NativeType 对应的 Dart 类型。

Int8 -> int Int16 -> int Int32 -> int Int64 -> int Uint8 -> int Uint16 -> int Uint32 -> int Uint64 -> int IntPtr -> int Double -> double Float -> double Pointer-> Pointer NativeFunction<T1 Function(T2, T3) -> S1 Function(S2, S3) where DartRepresentationOf(Tn) -> Sn T extends Struct -> T T extends Union -> T

实现

const DartRepresentationOf(String nativeType);