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. Color? color,
  12. BlendMode colorBlendMode = BlendMode.srcIn,
  13. String? semanticsLabel,
  14. bool excludeFromSemantics = false,
  15. Clip clipBehavior = Clip.hardEdge,
  16. bool cacheColorFilter = false,
  17. SvgTheme? theme,
})

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,
  Color? color,
  BlendMode colorBlendMode = BlendMode.srcIn,
  String? semanticsLabel,
  bool excludeFromSemantics = false,
  Clip clipBehavior = Clip.hardEdge,
  bool cacheColorFilter = false,
  SvgTheme? theme,
}) {
  return SvgPicture.string(
    randomAvatarString(string, trBackground: trBackground),
    key: key,
    width: width,
    height: height,
    fit: fit,
    alignment: alignment,
    matchTextDirection: matchTextDirection,
    allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
    placeholderBuilder: placeholderBuilder,
    color: color,
    colorBlendMode: colorBlendMode,
    semanticsLabel: semanticsLabel,
    excludeFromSemantics: excludeFromSemantics,
    clipBehavior: clipBehavior,
    cacheColorFilter: cacheColorFilter,
    theme: theme,
  );
}