openOptions method

void openOptions(
  1. BuildContext context
)

Implementation

void openOptions(BuildContext context) {
  var name = value == null ||
          value!.follower == null ||
          value!.follower!.name == null
      ? 'unknown'
      : value!.follower!.name;
  openAckNackDialog(app, context, '${app.documentID}/_followinvitation',
      title: 'Follow Request',
      ackButtonLabel: 'Accept',
      nackButtonLabel: 'Reject',
      message:
          'This member ${name!} would like to follow you? Do you accept or reject?',
      onSelection: (value) {
    if (value == 0) {
      _accept(context);
    } else {
      _reject(context);
    }
  });
}