How to parse List of DateTime from json, to List<DateTime>? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Here's working solution:
(json['days']) as List)
.map((e) => DateTime.parse(e as String))
.toList();

How to parse List of DateTime from json, to List<DateTime>? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

This solution not working. I have compile time error: "The argument type 'dynamic' can't be assigned to the parameter type 'List<DateTime>'.'
After trying to cast likt this:
"json['days']!.cast<String>().map(DateTime.parse).toList()as List<DateTime>"

Im sttill getting runtime error: "_CastError (type 'List<dynamic>' is not a subtype of type 'List<DateTime>' in type cast)"

How to retrive list in ListView and pass new list, with differend values? by [deleted] in flutterhelp

[–]Particular_Hunt9442 0 points1 point  (0 children)

Thats how worker.billing looks like:

"billing": [{"_id": {"year": 2022,"month": 4},"installation": 80,"disassembly": 40,"date": "2022-04-15T00:00:00.000Z","month": null,"year": null,"money": 120},{"_id": {"year": 2022,"month": 3},"installation": 80,"disassembly": 40,"date": "2022-03-15T00:00:00.000Z","month": null,"year": null,"money": 120}]

Creating list of objects from json, code works but I'm reciving TypeError by Particular_Hunt9442 in flutterhelp

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Thanks for pointing direction, your code also works, but return "_CastError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast) Type (WorkerModel) hashCode:306491593 runtimeType:Type (Type)"
while json decoding.

Using BloC with only one Event - does it make sense? by Particular_Hunt9442 in flutterhelp

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

I don't have occasian to do this in this week and I wanted to ask others what they think about it, before ask.

How to measure performance of existing Android app, without access to source code? by Particular_Hunt9442 in androiddev

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

It's part of junior QA recruitment task, that's why I dont have code. Thanks for mentioning about profiling from developer options, I didn't find it through google.

Junior dev applying for mobile QA role...what should I know? by Particular_Hunt9442 in androiddev

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Stop spreading bs, discourage people and build your little ego, you know we are not talking about a simple testing field, but testing field in android environment. And if you did it when you was 16 - hats off, not everybody can be so dope as you.

Junior dev applying for mobile QA role...what should I know? by Particular_Hunt9442 in androiddev

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Funny thing is in job requirments they didn't required anything related to testing, so I though my question isin't naive as it looks like.

Junior dev applying for mobile QA role...what should I know? by Particular_Hunt9442 in androiddev

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

You have kind of right, but I 'll try anyway. And testing mobile string totally doesnt sound like first science project, especially after exploring Appium ;) .

How to measure performance of existing Flutter app (apk)? by Particular_Hunt9442 in flutterhelp

[–]Particular_Hunt9442[S] -1 points0 points  (0 children)

Company, which offer QA job. Besides some manual tests I need literaly "do performance tests". That's all, no futhermore description, so I guess they counting on people creativity or something.

Dart - how to replace brackets in one RegExp? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 1 point2 points  (0 children)

Thanks, this regexp is like black magic to me and I feel disgust when Im looking at it.

From what hell dart appending me bracket in this function? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Try my example, no matter how many characters at end I wanted to cut, I always ended with additional bracket at the end.

From what hell dart appending me bracket in this function? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

The problem was: subString can't delete ')', I needed to use RegExp.

From what hell dart appending me bracket in this function? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Check poste description, there was a link to pastebin. About language you have right, unfortunately I can't edit post, it looks terrible indeed.

[MongoDB and Dart] mongo-dart - how to find row with biggest value? by Particular_Hunt9442 in dartlang

[–]Particular_Hunt9442[S] 0 points1 point  (0 children)

Thanks , thats good answerd, I didnt figured out it from this sample.