NinePatchMetadata.from constructor

NinePatchMetadata.from(
  1. NinePatchMetadata metadata
)

Implementation

NinePatchMetadata.from(common.NinePatchMetadata metadata)
    : this(
        dimensions:
            _sizeFromPoint(metadata.dimensions!) / (metadata.scale ?? 1.0),
        scalableArea: _rectFromRectangle(metadata.stretch,
            scale: metadata.scale ?? 1.0),
        fillArea: _edgeInsetsFromRectangle(
                metadata.contents, metadata.dimensions!) /
            (metadata.scale ?? 1.0),
      );