horizontalSeparator method Null safety

SizedBox horizontalSeparator(
  1. double percent,
  2. BuildContext context
)

Creates a horizontal separator. It takes the percent of the screen that it should occupy.

Returns a SizedBox.

Implementation

static SizedBox horizontalSeparator(double percent, BuildContext context){
  return SizedBox(
    height: 1,
    width: Sizes.getScreenSize(context).width * percent,
  );
}