pixelSnap method

Decoration pixelSnap(
  1. PixelSnap ps, [
  2. PixelSnapMode mode = PixelSnapMode.snap
])

Implementation

Decoration pixelSnap(PixelSnap ps,
    [PixelSnapMode mode = PixelSnapMode.snap]) {
  if (this is BoxDecoration) {
    return (this as BoxDecoration).pixelSnap(ps, mode);
  } else {
    return this;
  }
}