BMF3DModelOption.fromMap constructor Null safety
- Map map
map =>> BMF3DModelOption
Implementation
BMF3DModelOption.fromMap(Map map)
: assert(map['modelPath'] != null),
assert(map['modelName'] != null) {
modelPath = map['modelPath'];
modelName = map['modelName'];
scale = map['scale'] as double;
zoomFixed = map['zoomFixed'] as bool;
rotateX = map['rotateX'] as double;
rotateY = map['rotateY'] as double;
rotateZ = map['rotateZ'] as double;
offsetX = map['offsetX'] as double;
offsetY = map['offsetY'] as double;
offsetZ = map['offsetZ'] as double;
type = BMF3DModelType.values[map['type'] as int];
}