Skip to content

Commit

Permalink
Add const constructor to PagedChildBuilderDelegate
Browse files Browse the repository at this point in the history
- Made the PagedChildBuilderDelegate constructor const
- This allows for compile-time constant instances, improving performance
- No functional changes or alterations to existing comments
  • Loading branch information
fjyeo authored and clragon committed Oct 28, 2024
1 parent 532f526 commit 838031e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/paged_child_builder_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ typedef ItemWidgetBuilder<ItemType> = Widget Function(
/// Supplies builders for the visual components of paged views.
///
/// The generic type [ItemType] must be specified in order to properly identify
/// the list items type.
/// the list item's type.
class PagedChildBuilderDelegate<ItemType> {
PagedChildBuilderDelegate({
const PagedChildBuilderDelegate({
required this.itemBuilder,
this.firstPageErrorIndicatorBuilder,
this.newPageErrorIndicatorBuilder,
Expand Down

0 comments on commit 838031e

Please sign in to comment.