<pre><code>var dataJson = response.body; dataJson = dataJson.replaceAll('[', ''); dataJson = dataJson.replaceAll(']', ''); dataJson = dataJson.rep...
I have defined a class like this, <pre><code>class Person { final int id, final String name, final String email, final int age, Person({ this.id,...
I have a recipe app. Users can save recipes in a weekly planner (using Hive). The date is saved in this format: 2022-09-08 00:00:00.000 (= user wants to cook a recipe...
I have a list of strings that may contain null values, how do I sort this list? I'm using <strong>Flutter beta channel</strong> so <strong>null-safety</strong>...
I currently have a list of widgets <pre><code>List<LessonItem> _lessons = []; </code></pre> One Widget inside this list, added by the user should look lik...
I have a big list of 50k lines. Now when I try to sort it with <code>list.sort</code> it throws <code>Stack Overflow</code> error.<br /> How to make the sorting work l...
I am trying to sort a list with reference to another list. Consider this example, <pre><code>List<String> a = ["a", "b", "c"]; List<int> b = [2, 3, 1]...
I've been trying to build a sorting visualizer in Flutter but how do I represent the list of integers to be sorted as 'bars' on screen. Do you guys know any widgets/cl...
I have a map (mapone) that I want to sort by 'number'. But some items in the map have the same 'number', so if the items have the same 'number', they should be sorted...
I was working on a project where I need to sort a list that has objects in it, but it's giving an error. <pre><code>The expression here has a type of 'void', and...
i have <code>String List</code>, per element contains <strong>userId+DateTime</strong> <pre><code> List<String> = [ '9DWXpF6V4vN8oxqvsHKnOBg2Rz2022-09-...
I have tried this <pre><code>void main() { final List<String> values= [1,1000,10,100,200,...
I have some data on my project firestore. It seems like this: <img src="https://i.stack.imgur.com/H1frG.jpg" alt="" /> I am trying to sort this data by S...
I'm new to dart programming, I came from a Javascript environment everything is fresh to me and I really have no Idea how this sorting works in dart. Here's an...
I have a list (in flutter): <pre><code>loadedSummaryList = [ 'BILD', 'DRIT', 'VIMN', 'WELT', 'FLUTTER', 'ALL'...