title: Function to iterate trough comma separated hex strings and decode them in dart/flutter
body: <p>I need a little help with a function in dart/flutter I am trying to write.</p>
  <p>There are bunch of HEX encoded strings separated by comma and joined together in one <code>String</code>.</p>
  <p>For example:
  <code>String input = 'HexEncodedStr1,HexEncodedStr2,HexEncodedStr3'</code></p>
  <p>I need to decode each of those strings and output them in the same comma separated form:</p>
  <p><code>String output = 'HexDecodedStr1,HexDecodedStr2,HexDecodedStr3'</code></p>
  <p>Currently, I am using <code>hex.dart</code> package as string decoder but I am struggling to separate each encoded string before decoding it with <code>hex.dart</code>:</p>
  <pre><code>import 'package:hex/hex.dart';
  
  //The decode function
  String decode(hexString) {
    if (hexString != &quot;&quot;) {
       hexString = HEX.decode(hexString);
       return hexString;
    } else {
       return &quot;N/A&quot;;
    }
  }
  
  void main() {
  
    String test = decode('776f726c64,706c616e65740d0a');
    print(test); //world,planet
  
  }
  </code></pre>