Border.fromBorderSide constructor Null safety

const Border.fromBorderSide(
  1. BorderSide side
)

Creates a border whose sides are all the same.

The side argument must not be null.

Implementation

const Border.fromBorderSide(BorderSide side)
    : assert(side != null),
      top = side,
      right = side,
      bottom = side,
      left = side;