builder property

Widget Function(BuildContext context, bool isLoading, Object? error, String? subscriptionId, NostrEvent? event) builder
final

Builder function that receives the context, loading state, error, subscription ID, and the event

  • isLoading: true while the event is being fetched
  • error: any error that occurred during fetching, or null if successful
  • subscriptionId: the subscription ID returned by the relay
  • event: the fetched event, or null if no event was found or an error occurred

Implementation

final Widget Function(
  BuildContext context,
  bool isLoading,
  Object? error,
  String? subscriptionId,
  NostrEvent? event,
)
builder;