# Templates class

This class handles all template related functions. Templates are distros that are saved as ext4 files with additional metadata saved in the SharedPreferences.

## Constructors

Templates()

## Properties

hashCode → int
  The hash code for this object.
  read-only inherited
runtimeType → Type
  A representation of the runtime type of the object.
  read-only inherited

## Methods

deleteTemplate(String name) → Future<void>
  Delete a template by `name` and update the SharedPreferences. `Warning` This will also delete the template file.
getTemplateFilePath(String name) → String
  Return the path to a template by `name`. e.g. C:\WSL2-Distros\templates\ubuntu.ext4
getTemplatePath() → SafePath
  Return the general template path. Templates are saved here by default. It will be created if it does not exist. Relative to DistroPath.
getTemplates() → List<String>
  Get a list of all templates.
getTemplateSize(String name) → String
  Get template size by `name`. Returns a string with the size in GB fixed to 2 decimal places. e.g. 1.23 GB
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
saveTemplate(String name) → Future<void>
  Save a distro as a template by `name`
toString() → String
  A string representation of this object.
  inherited
useTemplate(String templateName, String newName) → Future<void>
  Use a template by `templateName` and create a new instance with `newName`.

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited