circularAssetImage method

Widget circularAssetImage({
  1. Key? key,
  2. double radius = 35.0,
  3. Color bgColor = Colors.white,
  4. Color? fgColor,
  5. Widget? child,
})

Implementation

Widget circularAssetImage(
        {Key? key,
        double radius = 35.0,
        Color bgColor = Colors.white,
        Color? fgColor,
        Widget? child}) =>
    CircleAvatar(
      key: key,
      radius: radius,
      backgroundColor: bgColor,
      foregroundColor: fgColor,
      backgroundImage: AssetImage(this),
      child: child,
    );