PhotoViewGalleryBuilder typedef Null safety

PhotoViewGalleryBuilder = PhotoViewGalleryPageOptions Function(BuildContext context, int index)

A type definition for a Function that defines a page in PhotoViewGallery.build

Implementation

typedef PhotoViewGalleryBuilder = PhotoViewGalleryPageOptions Function(
    BuildContext context, int index);