NinePatchMetadata constructor
NinePatchMetadata({
- required Size dimensions,
- required Rect scalableArea,
- required EdgeInsets fillArea,
Implementation
NinePatchMetadata({
required this.dimensions,
required this.scalableArea,
required this.fillArea,
}) : assert(!dimensions.isEmpty, 'dimensions must not be empty.'),
assert(
scalableArea.left < scalableArea.right &&
scalableArea.top < scalableArea.bottom,
'DecorationImage does not like it when the scalable area is empty '
'(or worse negative). While I think that\'s a valid Nine Patch, '
'because you don\'t scale in that direction, it\'s not supported '
'by Flutter.');