get<T> abstract method

  1. @override
T get<T>([
  1. String path
])

Gets a value in the global context according to the path passed as parameter. The path is optional, if not passed, the entire global context is returned. If no value is found for the provided path, null is returned.

Example of path: if the global context has an object named user, with an array named documents and you want the first document, use user.documents[0] as path.

The type returned by this function is always one of the following: Map, Array, num, bool or String.

Implementation

@override
T get<T>([String path]);