AvatarGroup.toStart constructor

AvatarGroup.toStart({
  1. Key? key,
  2. required List<AvatarWidget> children,
  3. double? gap,
  4. double offset = 0.5,
})

Creates an AvatarGroup with start-to-end overlapping.

Locale-aware version of toLeft. In LTR locales, behaves like toLeft. In RTL locales, behaves like toRight.

Parameters:

  • children (List
  • gap (double?, optional): Spacing between overlapping edges
  • offset (double, default: 0.5): Amount of overlap (0.0 to 1.0)

Example:

AvatarGroup.toStart(
  children: [Avatar(initials: 'A'), Avatar(initials: 'B')],
);

Implementation

factory AvatarGroup.toStart({
  Key? key,
  required List<AvatarWidget> children,
  double? gap,
  double offset = 0.5,
}) {
  return AvatarGroup(
    key: key,
    alignment: AlignmentDirectional(offset, 0),
    gap: gap,
    children: children,
  );
}