fake library
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
- AClassUsingASuperMixin
- Verify super-mixins don't break Dartdoc.
- AClassWithFancyProperties
- AMixinCallingSuper
- Annotation
- Useful for annotations.
- AnotherInterface
- Yet another interface that can be implemented.
- BaseForDocComments
- BaseThingy
- BaseThingy2
- Test for MultiplyInheritedExecutableElement handling.
- ClassWithUnusualProperties
- Classes with unusual properties? I don't think they exist. [...]
- ConstantClass
- For make-better testing of constants. [...]
- ConstructorTester<A, B>
- Cool
- This class is cool!
- DocumentWithATable
- This is a class with a table. [...]
- ExtraSpecialList<E>
- This inherits operators.
- Foo2
- link to method from class Apple.m
- HasGenerics<X, Y, Z>
- HasGenericWithExtends<T extends Foo2>
- I have a generic and it extends Foo2
- ImplementingThingy
- ImplementingThingy2
- ImplicitProperties
- Names are actually wrong in this class, but when we extend it, they are correct.
- InheritingClassOne
- InheritingClassTwo
- Interface
- An interface that can be implemented.
- LongFirstLine
- This is a very long line spread across... wait for it... two physical lines. [...]
- MIEEBase<K, V>
- MIEEMixin<K, V>
- MIEEMixinWithOverride<K, V>
- Test an edge case for cases where inherited ExecutableElements can come both from private classes and public interfaces. The test makes sure the class still takes precedence (#1561).
- MIEEThing<K, V>
- MixMeIn
- Perfect for mix-ins.
- NotAMixin
- OperatorReferenceClass
- Test operator references: OperatorReferenceClass.==.
- OtherGenericsThing<A>
- ReferringClass
- SpecialList<E>
-
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 → const ConstantClass
-
const ConstantClass('custom')
- CUSTOM_CLASS_PRIVATE → const _APrivateConstClass
-
const _APrivateConstClass()
- DOWN → const String
-
Dynamic-typed down.
'down'
- greatAnnotation → const String
-
This is a great thing.
'great'
- greatestAnnotation → const String
-
This is the greatest thing.
'greatest'
- incorrectDocReference → const String
-
Referencing something that
doesn't exist
.'doh'
- NAME_SINGLEUNDERSCORE → const String
-
'yay bug hunting'
- NAME_WITH_TWO_UNDERSCORES → const String
-
'episode seven better be good; episode seven better be good; episode seven better be good; episode seven better be good'
- PI → const double
-
Constant property.
3.14159
- required → const String
-
'required'
- testingCodeSyntaxInOneLiners → const String
-
These are code syntaxes:
true
andfalse
'fantastic'
- UP → const String
-
Up is a direction. [...]
'up'
- ZERO → const int
-
A constant integer value,
which is a bit redundant.
0
Properties
- dynamicGetter → dynamic
-
A dynamic getter.
read-only
- getterSetterNodocGetter ← int
-
Setter docs should be shown.
write-only
- getterSetterNodocSetter → int
-
Getter docs should be shown.
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. [...]
-
myGenericFunction<S>(
int a, bool b, S c) → void - A generic function with a type parameter.
-
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. -
paramOfFutureOrNull(
FutureOr<Null> future) → void -
Has a parameter explicitly typed
FutureOr<Null>
. -
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
. -
thisIsFutureOr(
) → FutureOr -
Explicitly return a
FutureOr
. -
thisIsFutureOrNull(
) → FutureOr<Null> -
Explicitly return a
FutureOr<Null>
. -
thisIsFutureOrT<T>(
) → FutureOr<T> -
Explicitly return a
FutureOr<T>
. -
topLevelFunction(
int param1, bool param2, Cool coolBeans, [ double optionalPositional = 0.0 ]) → String - Top-level function 3 params and 1 optional positional param. [...]
-
typeParamOfFutureOr<T extends FutureOr<List>>(
) → void -
Has a type parameter bound to
FutureOr<List>
.
Enums
- Color
-
An
enum
for ROYGBIV constants.
Typedefs
-
Callback2(
String) → int -
FakeProcesses(
String input) → String - Takes input, returns output.
-
GenericTypedef<T>(
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.
-
myCoolTypedef(
Cool x, bool y) → void -
NewGenericTypedef<T>(
T, int, bool) → List<S> - A typedef with the new style generic function syntax.
-
VoidCallback(
) → void