RandomAvatar function

Widget RandomAvatar(
  1. String string, {
  2. bool trBackground = false,
  3. Key? key,
  4. double? width,
  5. double? height,
  6. BoxFit fit = BoxFit.contain,
  7. AlignmentGeometry alignment = Alignment.center,
  8. bool matchTextDirection = false,
  9. bool allowDrawingOutsideViewBox = false,
  10. WidgetBuilder? placeholderBuilder,
  11. String? semanticsLabel,
  12. bool excludeFromSemantics = false,
  13. ColorFilter? colorFilter,
  14. SvgTheme theme = const SvgTheme(),
})

Implementation

Widget RandomAvatar(
  String string, {
  bool trBackground = false,
  Key? key,
  double? width,
  double? height,
  BoxFit fit = BoxFit.contain,
  AlignmentGeometry alignment = Alignment.center,
  bool matchTextDirection = false,
  bool allowDrawingOutsideViewBox = false,
  WidgetBuilder? placeholderBuilder,
  String? semanticsLabel,
  bool excludeFromSemantics = false,
  ColorFilter? colorFilter,
  SvgTheme theme = const SvgTheme(),
}) {
  return SvgPicture.string(
    RandomAvatarString(string, trBackground: trBackground),
    key: key,
    width: width,
    height: height,
    fit: fit,
    alignment: alignment,
    matchTextDirection: matchTextDirection,
    allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
    placeholderBuilder: placeholderBuilder,
    semanticsLabel: semanticsLabel,
    excludeFromSemantics: excludeFromSemantics,
    colorFilter: colorFilter,
    theme: theme,
  );
}