custom method

Widget custom({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. String assetPath
    ),
})

Implementation

Widget custom({
  Key? key,
  required Widget Function(BuildContext context, String assetPath) builder,
}) {
  return Builder(
    key: key,
    builder: (context) => builder(context, _assetName),
  );
}