isUniform property

bool get isUniform

Whether all the sides of the border (outside and inside) are identical. Uniform borders are typically more efficient to paint.

Implementation

bool get isUniform {
  return _allSidesMatch<Color>((BorderSide side) => side.color) &&
      _allSidesMatch<double>((BorderSide side) => side.width) &&
      _allSidesMatch<BorderStyle>((BorderSide side) => side.style);
}