OutlinedBorder constructor Null safety

const OutlinedBorder(
  1. {BorderSide side = BorderSide.none}
)

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

The value of side must not be null.

Implementation

const OutlinedBorder({ this.side = BorderSide.none }) : assert(side != null);