SpacingWidgetBuilder typedef
SpacingWidgetBuilder =
Widget Function(BuildContext context, List<SpacingType> spacingTypes)
Builder for building certain spacing after widgets. This spacing can be in form of any widgets you like. A List of SpacingType is provided to help inform the decision of what to build after the message.
As an example: MessageListView( spacingWidgetBuilder: (context, list) { if(list.contains(SpacingType.defaultSpacing)) { return SizedBox(height: 2.0,); } else { return SizedBox(height: 8.0,); } }, ),
Implementation
typedef SpacingWidgetBuilder = Widget Function(
BuildContext context,
List<SpacingType> spacingTypes,
);