xCircleFileImage method

Widget xCircleFileImage (
  1. {Color backgroundColor,
  2. Widget child,
  3. Color foregroundColor,
  4. Key key,
  5. double maxRadius,
  6. double minRadius,
  7. double radius}
)

Implementation

Widget xCircleFileImage({
  Color backgroundColor,
  Widget child,
  Color foregroundColor,
  Key key,
  double maxRadius,
  double minRadius,
  double radius,
}) {
  return CircleAvatar(
    backgroundColor: backgroundColor,
    foregroundColor: foregroundColor,
    key: key,
    maxRadius: maxRadius,
    minRadius: minRadius,
    radius: radius,
    backgroundImage: FileImage(File(this)),
    child: child,
  );
}