nodeList method

  1. @override
Future<List<String>?> nodeList()
override

Implementation

@override
Future<List<String>?> nodeList() async {
  final List? nodes = await methodChannel.invokeMethod<List?>('nodeList');

  List<String>? newNode = nodes?.map((e) => e.toString()).toList();

  return newNode;
}