Skip to content

NyListView and child type #39

Open
@vptcnt

Description

@vptcnt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions