Packing/Unpacking arguments in Dart

Is there a way in Dart to pack/unpack arguments in a function (like Python for example) ? For packing example, being able to declare a function like this : packArguments(*listOfArguments, **mapOfArguments) { listOfArguments.forEach((arg) => ...
more »

2017-03-16 11:03 (1) Answers

Unit testing with dart's shelf_rest

I'm trying to test a Dart REST app run on shelf_rest. Assuming a setup similar to the shelf_rest example, how can one test the configured routes without actually running an HTTP server? import 'package:shelf/shelf.dart'; import 'package:shelf/shelf_...
more »

2017-03-16 04:03 (1) Answers

check if an HtmlElement has a directive

I would like to know how to check if an Element implements some directive. I have two directives, a Sortable and a SortableItem, once the onDrop within SortableItem fires, I will call some binded function on the Sortable parent. The problem is that t...
more »

2017-03-15 17:03 (1) Answers

How to test AngularDart components?

I try testing some component: dependencies: angular2: '^3.0.0-alpha+1' angular2_components: '^0.4.0-alpha' dev_dependencies: angular_test: git: "
more »

2017-03-15 15:03 (1) Answers

Tips to speed up pub get in containers?

I am running my package tests in containers in GCloud (coupled with Jenkins). Every time a new test run starts, the state of the containers reset (pub's package cache is purged). Running all the tests take about 10-12 minutes, and running pub get t...
more »

2017-03-15 15:03 (1) Answers

Can I have another form of an enum value?

I have an enum in client code describing a list of endpoints in the API: enum Requests { GetUsers, GetProducts, ... } I want to send requests to server having these values, like connection.sendRequest(Requests.GetUsers). Now, in the se...
more »

2017-03-15 07:03 (1) Answers

Dartium build on windows with ffmpeg

I am trying to build Dartium with proprietary codecs. I am running into a problem with "_ff_w64_guid_data". I did a google search, and the most it comes up with is that it is a bug with old versions of chromium, and it was fixed in later releases, un...
more »

2017-03-14 01:03 (0) Answers

DART custom input element

I'm trying custom input element for work with db. All work perfectly in Chrome, but not work in IE. I create test app abstract class DBEdit { DBSetValue(String val) {} } class DBEditText extends InputElement implements DBEdit { String _FieldNa...
more »

2017-03-13 20:03 (0) Answers

how to get document.referer with angular 2 dart?

We can have the referrer with javascript by using document.referrer. But what about angular 2 dart? The Document does not have this option and I couldn't find it within Angular 2. Any ideas? I will use interop if no official way around. EDIT: the ht...
more »

2017-03-13 19:03 (1) Answers

'Missing Focus scope.' Using input text

I try build a form using Flutter, I have my own StatefulWidget that return a Form with 2 Input (I try with TextField too) and a DropdownButton. When I executed the second Input show this error: 'Missing Focus scope.' The code: import 'package:flut...
more »

2017-03-12 22:03 (0) Answers

Flutter inputfield keyoard

I'm experimenting Flutter development on Windows. I have a simple test app with an InputField. I would like the first keyboard entry to be a capital letter but can't see a way of achieving that (e.g. launching the keyboard with shift pressed) that ...
more »

2017-03-12 13:03 (0) Answers

GridView onTap is only called during creation

I made a GridView with children that each has a GestureDetector and a onTap method set. But the onTap event gets called only when the view is created and not when the item has been tapped. What am I doing wrong here? class MyGridView extends Statele...
more »

2017-03-11 23:03 (1) Answers

how do I get ngModel attribute as raw string?

The component: <test [(ngModel)]="someobject.somevar" someattr="someval"></test> I would like to know the insides of ngModel but as raw string, in the above case, it would be "someobject.somevar". But when I print the contents of ...
more »

2017-03-11 18:03 (1) Answers

Dart: Get enum from String?

Hi there I have the following class in the Google Maps dart library and want to parse a Google Style JSONs into Dart object oriented format. Within the lib (can NOT be changed!) I have the following Enum: part of google_maps.src; @jsEnum class Map...
more »

2017-03-10 18:03 (2) Answers

Dart Angular sample

I am using IntelliJ IDEA to develop a Dart/Angular app, from IDEA's new project wizard. After compiling OK, I tried to load it both from browser (run as a local file) and from Web access (served by Apache2). But the page (index.html) just show pla...
more »

2017-03-10 03:03 (1) Answers

List property inheritance

The parser is complaining that the property inheritor .list is not subtype of ModelList.list, but LeadsGroup does inherit from Model. Is this wrong? What is the correct way to do this? My base class: abstract class ModelList { List<Model>...
more »

2017-03-08 20:03 (1) Answers

Dartium fails to build on windows

I am trying to build a version of Dartium on windows, but I keep running into a problem. I am trying to build a Dartium with the proprietary codecs, so I can play AAC codec in an MP4 file, which normal Dartium can't play. [22/22259] CXX obj\dart\ru...
more »

2017-03-06 22:03 (1) Answers