197 questions
1
vote
1
answer
2k
views
From given two lists, how to extract all the elements from one list that are not available in the other list in Dart?
I have two lists in Dart as below,
final List availableIssueComponents = [
{'id': 1, 'componentName': 'Cash Acceptor'},
{'id': 2, 'componentName': 'Printer'},
{'id': 3, 'componentName': '...
2
votes
2
answers
4k
views
Does dartpad not support I/O?
Recently I was trying out some code snippets from "Dart For Absolute Beginners" on DartPad.
Specifically:
import 'dart:math';
import 'dart:io';
void main()
{
int guess;
Random rand ...
0
votes
1
answer
320
views
Why is output of {42.05 + 0.05 } like this on Dart Lang? [duplicate]
When i try this on DartPad output is like this. Anyone can explain ?
5
votes
1
answer
15k
views
Abstract methods in Dart
I'm implementing an inheritance hierarchy in which derived-class construction consists only of a call to the base-class constructor. The base-class constructor then calls method(s) implemented only in ...
1
vote
1
answer
48
views
Weird DartEditor behavior / bug?
I'm working on a little website using dart.
I have one project for the server, and another for the client app (see picture below)
In the server app I serve the client app from the client project like ...
1
vote
1
answer
125
views
Dart Editor freezes when saving files?
Everytime I hit Ctrl + S in Dart Editor the application freezes for several seconds, sometimes up to half a minute. After that it says Build completed successfully in the Tools Output.
I have a habit ...
1
vote
0
answers
85
views
Executing a dart application prints errors to console
I am using Dart Editor|
Dart Editor version 1.10.0.dev_01_01 (DEV)
Dart SDK version 1.10.0-dev.1.1
I open polymer_snippet and run the app and it executes as expected.
I attempted to run epimss_app ...
0
votes
1
answer
83
views
How to make Dart Editor find referenced packages
In the Dart Editor (x64), I create a new project from the "Polymer Web Application" template.
Immediately after creation, Dart Editor runs pub get command, executes building workspace.
Then for ...
0
votes
0
answers
242
views
How to reinstall Dart Editor
I've been trying Dart x64 for a month (under Windows 8).
Unfortunately, I've removed the "\Users\$user\AppData\Roaming\Pub\" folder. After that any Dart/Polymer project (including shipped samples ...
0
votes
1
answer
233
views
How to configure formatting rules in Google Dart Editor
I want configure the Dart Editor for the formatting a such source code without a breaking the first line on parameter list.
Result of formatting.
String _expand(
List fragments, Map<String, ...
0
votes
1
answer
158
views
Unable to import dart library for command line app
When initiating a command line utility in dart, I get the following directory structure:
happy/
bin/
main.dart
lib/
happy.dart
user.dart
Where happy.dart, and user.dart are identical ...
1
vote
1
answer
76
views
Can not get the repeat to work in a dart polymer webapp
Created a default polymere web app
Delete a few lines of main_app.html to this
<link rel="import" href="../../packages/polymer/polymer.html">
<polymer-element name="main-app">
&...
3
votes
1
answer
717
views
dart: proxy annotation usage
Documentation for the @proxy annotation states:
If a class is annotated with @proxy, or it implements any class that is annotated, then the class is considered to implement any interface and any ...
2
votes
1
answer
533
views
How do i tell the Dart Editor to use the PATH location of the SDK?
I would like to store my dart-sdk outside of the folder where i keep the editor. For sake of brevity lets say its stored in C:/dart-sdk/bin
C:\Users\John> echo %PATH%
..;..;C:\dart-sdk\bin
C:\...
2
votes
2
answers
279
views
Symbol with private identifier argument
I want to create a symbol equal to that of a private MethodMirror's simplename. However, Symbol's documentation states the argument of new Symbol must be a valid public identifier. If I try and create ...