find method

  1. @override
MenuElement? find({
  1. required int uniqueId,
})
override

Implementation

@override
MenuElement? find({required int uniqueId}) {
  final result = super.find(uniqueId: uniqueId);
  if (result != null) {
    return result;
  } else {
    for (final child in children) {
      final result = child.find(uniqueId: uniqueId);
      if (result != null) {
        return result;
      }
    }
    return null;
  }
}