build method
- dynamic context,
- 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));
}
}