ShapeBorder.border constructor Null safety

  1. @Implements<BoxBorder>()
const ShapeBorder.border(
  1. {@Default(BorderSide.none) BorderSide top,
  2. @Default(BorderSide.none) BorderSide right,
  3. @Default(BorderSide.none) BorderSide bottom,
  4. @Default(BorderSide.none) BorderSide left}
)

Implementation

@Implements<BoxBorder>()
const factory ShapeBorder.border({
  @Default(BorderSide.none) BorderSide top,
  @Default(BorderSide.none) BorderSide right,
  @Default(BorderSide.none) BorderSide bottom,
  @Default(BorderSide.none) BorderSide left,
}) = Border;