AvatarGroup.toEnd constructor
AvatarGroup.toEnd({
- Key? key,
- required List<
AvatarWidget> children, - double? gap,
- double offset = 0.5,
Creates an AvatarGroup with end-to-start overlapping.
Locale-aware version of toRight. In LTR locales, behaves like toRight. In RTL locales, behaves like toLeft.
Parameters:
children(Listgap(double?, optional): Spacing between overlapping edgesoffset(double, default: 0.5): Amount of overlap (0.0 to 1.0)
Example:
AvatarGroup.toEnd(
children: [Avatar(initials: 'A'), Avatar(initials: 'B')],
);
Implementation
factory AvatarGroup.toEnd({
Key? key,
required List<AvatarWidget> children,
double? gap,
double offset = 0.5,
}) {
return AvatarGroup(
key: key,
alignment: AlignmentDirectional(-offset, 0),
gap: gap,
children: children,
);
}