Перейти к основному содержимому

SliverList

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
SliverList✗✗✗link
Атрибуты (устаревшие модели)
final class SliverListAttributes
implements DuitAttributes<SliverListAttributes>, DynamicChildHolder {
final bool addAutomaticKeepAlives, addRepaintBoundaries, addSemanticIndexes;

/// 0 - SliverList.list,
/// 1 - SliverList.builder,
/// 2 - SliverList.separated
final int type;
final Map<String, dynamic>? separator;

final List<Map<String, dynamic>>? childObjects;

final ArrayMergeStrategy? mergeStrategy;

final double? scrollEndReachedThreshold;

SliverListAttributes({
required this.addAutomaticKeepAlives,
required this.addRepaintBoundaries,
required this.addSemanticIndexes,
}) : separator = null,
childObjects = null,
mergeStrategy = ArrayMergeStrategy.addToEnd,
scrollEndReachedThreshold = null,
type = 0;
}

Пример использования​

SliverList(
&duit_attributes.SliverListAttributes{
AddAutomaticKeepAlives: true,
AddRepaintBoundaries: true,
AddSemanticIndexes: true,
},
"id",
false,
//delegate,
)