This is my key
pi_1DsTls2eZvKYlo2C3N1yynSw_secret_bTWD4Vz6X384KpcdeZV6uqlhy
from this key i eant to take only this with hard code
pi_1DsTls2eZvKYlo2C3N1yynSw
please help me, thank you
>Solution :
here a function you can use
String getBeforeSecondUnderScore(String value) {
return value.substring(
0,
value.indexOf(
"_",
value.indexOf("_") + 1,
),
);
}
in dart laungage since I found it with flutter tag filter