build method

  1. @override
dynamic build(
  1. dynamic context,
  2. dynamic ref
)

Implementation

@override
Widget build(BuildContext context, WidgetRef ref) {
  final pin = ref.watch(pinProvider(pinId)).valueOrNull;
  if (pin != null) {
    return buildPinItemUI(context, ref, pin);
  } else if (refDetails != null) {
    return ReferenceDetailsItem(refDetails: refDetails!);
  } else {
    return const Skeletonizer(child: SizedBox(height: 100, width: 100));
  }
}