loadDefaultImage method

Widget loadDefaultImage(
  1. double width,
  2. double height, {
  3. String ext = "Photo",
  4. Color backgroundColor = Colors.black,
  5. TextStyle? textStyle,
})

Implementation

Widget loadDefaultImage(double width, double height,
        {String ext = "Photo",
        Color backgroundColor = Colors.black,
        TextStyle? textStyle}) =>
    SizedBox(
      child: Container(
        decoration: BoxDecoration(
          color: backgroundColor,
        ),
        child: Center(
            child: Text(
          ext,
          style: textStyle ?? TextStyle(),
        )),
      ),
      width: width,
      height: height,
    );