select method

Future select(
  1. BuildContext context
)

Implementation

Future select(BuildContext context) async {
  final Map? results = await Navigator.push(
    context,
    MaterialPageRoute(builder: (context) => NxSelectOptions(
      title: 'Select ${label?.toLowerCase() ?? ''}',
      options: options ?? [],
      selected: selected,
      useFilter: useFilter,
      multipleSelect: multipleSelect,
    )),
  );

  if (results != null && results.containsKey('data')) {
    onSelected?.call(results['data']);
  }
}