fixed exchangeable_object_generator
This commit is contained in:
parent
05cb0184fc
commit
e7804f1606
@ -497,9 +497,9 @@ class ExchangeableObjectGenerator
|
||||
}
|
||||
} else if (elementType.getDisplayString(withNullability: false) ==
|
||||
"EdgeInsets") {
|
||||
return "MapEdgeInsets.fromMap($value?.cast<String, dynamic>())${isNullable ? '!' : ''}";
|
||||
return "MapEdgeInsets.fromMap($value?.cast<String, dynamic>())${!isNullable ? '!' : ''}";
|
||||
} else if (elementType.getDisplayString(withNullability: false) == "Size") {
|
||||
return "MapSize.fromMap($value?.cast<String, dynamic>())${isNullable ? '!' : ''}";
|
||||
return "MapSize.fromMap($value?.cast<String, dynamic>())${!isNullable ? '!' : ''}";
|
||||
} else if (elementType.getDisplayString(withNullability: false) ==
|
||||
"DateTime") {
|
||||
if (!isNullable) {
|
||||
|
@ -128,7 +128,7 @@ class PrintJobAttributes {
|
||||
PrintJobMediaSize.fromMap(map['mediaSize']?.cast<String, dynamic>()),
|
||||
resolution: PrintJobResolution.fromMap(
|
||||
map['resolution']?.cast<String, dynamic>()),
|
||||
margins: MapEdgeInsets.fromMap(map['margins']?.cast<String, dynamic>())!,
|
||||
margins: MapEdgeInsets.fromMap(map['margins']?.cast<String, dynamic>()),
|
||||
footerHeight: map['footerHeight'],
|
||||
headerHeight: map['headerHeight'],
|
||||
printableRect: InAppWebViewRect.fromMap(
|
||||
|
Loading…
x
Reference in New Issue
Block a user