clearPointerOrConst method

String clearPointerOrConst()

clears the const keyword or pointers on a string

Implementation

String clearPointerOrConst() =>
    replaceAll(RegExp(r"(\*|&|const|(\[.+\]))"), "");