I want to remove string from a String in dart flutter, How to seperate
I am trying to seperate or removing a string. Here the example: String sample = "https://xyz-api.portal.com/"; i want to get only "xyz-api", this string and want to store a variable, the expected output = String result = "xyz-api" How to…