Skip to content

NyListView and child type #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vptcnt opened this issue May 3, 2025 · 0 comments
Open

NyListView and child type #39

vptcnt opened this issue May 3, 2025 · 0 comments

Comments

@vptcnt
Copy link

vptcnt commented May 3, 2025

Hello,

I suggest that the child function must be typed as T :

class NyListView<T> extends StatefulWidget {
  final Function() data;
  final dynamic Function(List<T> data)? transform;
  final Widget Function(BuildContext context, T data) child;  /// <- Dynamic is replaced by T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant