startTask method

  1. @override
Future<void> startTask(
  1. AppModel app,
  2. BuildContext context,
  3. String? memberId,
  4. AssignmentModel? assignmentModel,
)
override

Implementation

@override
Future<void> startTask(AppModel app, BuildContext context, String? memberId,
    AssignmentModel? assignmentModel) {
  if (assignmentModel == null) {
    return Future.value(null);
  }

  openAckNackDialog(app, context, '${app.documentID}/membershipreq',
      title: 'Join',
      message: 'Do you want to request membership?', onSelection: (value) {
    if (value == 0) {
      confirmMembershipRequest(
        app,
        context,
        assignmentModel,
      );
    }
  });
  return Future.value(null);
}