yourWidget method

  1. @override
Widget yourWidget(
  1. BuildContext context,
  2. DocumentModel? value
)
override

Implementation

@override
Widget yourWidget(BuildContext context, DocumentModel? value) {
  return BlocBuilder<AccessBloc, AccessState>(
      builder: (context, accessState) {
    if (accessState is AccessDetermined) {
      return DocumentRendererTool().render(
          app,
          context,
          accessState.getMember(),
          value!.content!,
          value.images,
          value.background);
    } else {
      return progressIndicator(app, context);
    }
  });
}