Platform class
Constructors
- Platform()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
createFolder(
String? folder) → Future< String?> -
deleteFile(
String filename) → Future< bool> -
fileExists(
String filename) → bool -
filePath(
String? filename) → String? -
fileSaveAs(
List< int> bytes, String filename) → Future -
fileSaveAsFromBlob(
Blob blob, String? filename) → dynamic -
fml2js(
{String? version}) → void - This is a stub for expansion, some kind of protocol should be decided on within the data field before proceeding further
-
folderExists(
String folder) → bool -
folderPath(
String folder) → String? -
getFile(
String? filename) → dynamic -
goBackPages(
int pages) → Future< bool> -
init(
) → dynamic -
js2fml(
) → void -
Using the js package we can capture calls from javascript within flutter.
The js2fml(json) function is called from js and held in the
contextmap for use within flutter, passing its json as a map and allowing us in dart/flutter to access it. This enables fml to be used through an iframe. -
openPrinterDialog(
) → void -
readFile(
String? filepath) → Future< String?> -
readFileBytes(
String? filepath) → Future< Uint8List?> -
writeFile(
String? filename, dynamic content) → Future< bool>