myIntResourceStreamBuilder top-level property
Implementation
final myIntResourceStreamBuilder = ResourceStreamBuilder(
stream: someIntStream,
success: (context, myInt) => Text("My int loaded successfully: $myInt"),
loadingIndicator: (context) => const CircularProgressIndicator(),
/* optional handleError: defaults to red Text with error message */
handleFailure: (context, failure) =>
Text("Failed to get my int :(. ${failure.error?.message}"));