Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Random icon with Dart
import 'dart:html';
import 'dart:math';
void main() {
var rand = new Random();
var randomIcon = querySelector('#randomIcon');
if (rand.nextBool()){
randomIcon.attributes['class'] = 'fa fa-android';
randomIcon.attributes['class'] = 'fa fa-apple';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment