WOW FAKE PACKAGE IS BEST PACKAGE

If you don't have this package yet, get it. Don't ask questions.

Testing code true and false

Testing string escaping: var s = 'I am a string'

My favorite class is Cool.

I am an h2

hello there

I am an h3

hello there

I am an h4

hello there

I am an h5

hello

Why should you get this package?

  • We told you so.
  • Everyone is doing it.
  • It smells nice.
class Foo {
  long line is very long long line is very long long line is very long line long line long line
}

Here are some hyperlinks with angle brackets:

Classes

Annotation

Useful for annotations.

AnotherInterface

Yet another interface that can be implemented.

BaseForDocComments

ConstantClass

For make-better testing of constants.

Cool

This class is cool!

ExtraSpecialList

This inherits operators.

Foo2

link to method from class Apple.m

HasGenerics

HasGenericWithExtends

I have a generic and it extends Foo2

Interface

An interface that can be implemented.

LongFirstLine

This is a very long line spread across... wait for it... two physical lines.

MixMeIn

Perfect for mix-ins.

OperatorReferenceClass

Test operator references: OperatorReferenceClass.==.

OtherGenericsThing

SpecialList

Extends ListBase

SubForDocComments

Testing if docs for inherited method are correct.

SuperAwesomeClass

A super class, with many powers. Link to Apple from another library.

WithGetterAndSetter

Tests a single field with explict getter and setter.

Constants

CUSTOM_CLASS ConstantClass

const ConstantClass('custom')
DOWN → dynamic

Dynamic-typed down.

'down'
greatAnnotation → dynamic

This is a great thing.

'great'
greatestAnnotation → dynamic

This is the greatest thing.

'greatest'
incorrectDocReference → dynamic

Referencing something that doesn't exist.

'doh'
NAME_SINGLEUNDERSCORE → String

'yay bug hunting'
NAME_WITH_TWO_UNDERSCORES → String

'episode seven better be good; episode seven better be good; episode seven better be good; episode seven better be good'
PI → double

Constant property.

3.14159
required → dynamic

'required'
testingCodeSyntaxInOneLiners → dynamic

These are code syntaxes: true and false

'fantastic'
UP → String

Up is a direction.

'up'
ZERO → int

A constant integer value, which is a bit redundant.

0

Properties

dynamicGetter → dynamic

A dynamic getter.

read-only
justGetter → bool

Just a getter. No partner setter.

read-only
justSetter → int

Just a setter. No partner getter.

write-only
mapWithDynamicKeys → Map<dynamic, String>

read / write
meaningOfLife → int

Final property.

final
setAndGet → String

The getter for setAndGet.

read / write
simpleProperty → String

Simple property

read / write

Functions

addCallback(VoidCallback callback) → void

Adds a callback.

addCallback2(Callback2 callback) → void

Adds another callback.

functionWithFunctionParameters(int number, void thing(one, two), String string, Future asyncThing(three, four, five, six, seven)) → String

This function has two parameters that are functions.

onlyPositionalWithNoDefaultNoType([anything ]) → void

A single optional positional param, no type annotation, no default value.

@greatAnnotation
paintImage1({String canvas, int rect, ExtraSpecialList image, BaseForDocComments colorFilter, String repeat: LongFirstLine.THING }) → void

Paints an image into the given rectangle in the canvas.

paintImage2(String fooParam, [ String canvas, int rect, ExtraSpecialList image, BaseForDocComments colorFilter, String repeat = LongFirstLine.THING ]) → void

Paints an image into the given rectangle in the canvas.

paramFromAnotherLib(Apple thing) → void

FooBar comes from another library.

short() → void

Testing NAME_WITH_TWO_UNDERSCORES should not be italicized.

soIntense(anything, { bool flag: true, int value }) → void

Top-level function with 1 param and 2 optional named params, 1 with a default value.

thisIsAlsoAsync() → Future

Explicitly returns a Future and is marked async.

thisIsAsync() → Future

An async function. It should look like I return a Future.

topLevelFunction(int param1, bool param2, Cool coolBeans, [ double optionalPositional = 0.0 ]) → String

Top-level function 3 params and 1 optional positional param.

Enums

Color

An enum for ROYGBIV constants.

Typedefs

Callback2(String) → int

FakeProcesses(String input) → String

Takes input, returns output.

GenericTypedef(T input) → T

A typedef with a type parameter.

LotsAndLotsOfParameters(so, many, parameters, it, should, wrap, when, converted, to, html, documentation) → int

Lots and lots of parameters.

VoidCallback() → void

Exceptions / Errors

Doh

Also, my bad.

Oops

My bad!