decodeBoxConstraints function
Implementation
BoxConstraints decodeBoxConstraints(dynamic data) {
return BoxConstraints(
minWidth: (data['minWidth'] as num).toDouble(),
maxWidth: (data['maxWidth'] as num).toDouble(),
minHeight: (data['minHeight'] as num).toDouble(),
maxHeight: (data['maxHeight'] as num).toDouble(),
);
}