Border.fromBorderSide constructor Null safety
- 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;