|
@@ -92,6 +92,18 @@ namespace FlutterCodeGenerator
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public class IntNullableModeType : SimpleModelType
|
|
|
+ {
|
|
|
+ public IntNullableModeType(string name) : base(typeof(int?), name)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string GetFlutterTypeName(bool isDefault = true, bool isGenericName = false, bool isSingle = false)
|
|
|
+ {
|
|
|
+ return "int";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public class ByteModelType : SimpleModelType
|
|
|
{
|
|
|
public ByteModelType(string name) : base(typeof(byte), name)
|
|
@@ -105,6 +117,18 @@ namespace FlutterCodeGenerator
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public class ByteNullableModelType : SimpleModelType
|
|
|
+ {
|
|
|
+ public ByteNullableModelType(string name) : base(typeof(byte?), name)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string GetFlutterTypeName(bool isDefault = true, bool isGenericName = false, bool isSingle = false)
|
|
|
+ {
|
|
|
+ return "int";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public class VoidModelType : SimpleModelType
|
|
|
{
|
|
|
public VoidModelType(string name) : base(typeof(void), name)
|
|
@@ -119,7 +143,7 @@ namespace FlutterCodeGenerator
|
|
|
|
|
|
public class DoubleModeType : SimpleModelType
|
|
|
{
|
|
|
- public DoubleModeType(string name) : base(typeof(int), name)
|
|
|
+ public DoubleModeType(string name) : base(typeof(double), name)
|
|
|
{
|
|
|
DefaultValue = "0";
|
|
|
}
|
|
@@ -130,6 +154,19 @@ namespace FlutterCodeGenerator
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public class DoubleNullableModeType : SimpleModelType
|
|
|
+ {
|
|
|
+ public DoubleNullableModeType(string name) : base(typeof(double?), name)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string GetFlutterTypeName(bool isDefault = true, bool isGenericName = false, bool isSingle = false)
|
|
|
+ {
|
|
|
+ return "double";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public class BoolModeType : SimpleModelType
|
|
|
{
|
|
|
public BoolModeType(string name) : base(typeof(bool), name)
|
|
@@ -143,6 +180,18 @@ namespace FlutterCodeGenerator
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public class BoolNullableModeType : SimpleModelType
|
|
|
+ {
|
|
|
+ public BoolNullableModeType(string name) : base(typeof(bool?), name)
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string GetFlutterTypeName(bool isDefault = true, bool isGenericName = false, bool isSingle = false)
|
|
|
+ {
|
|
|
+ return "bool";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public class ExtraObjectModelType : SimpleModelType
|
|
|
{
|
|
|
public ExtraObjectModelType(Type type, string name) : base(type, name)
|