ShapeBorder.directional constructor Null safety

  1. @Implements<BoxBorder>()
const ShapeBorder.directional(
  1. {@Default(BorderSide.none) BorderSide top,
  2. @Default(BorderSide.none) BorderSide start,
  3. @Default(BorderSide.none) BorderSide end,
  4. @Default(BorderSide.none) BorderSide bottom}
)

Implementation

@Implements<BoxBorder>()
const factory ShapeBorder.directional({
  @Default(BorderSide.none) BorderSide top,
  @Default(BorderSide.none) BorderSide start,
  @Default(BorderSide.none) BorderSide end,
  @Default(BorderSide.none) BorderSide bottom,
}) = BorderDirectional;