delete method
Deletes animation.
Implementation
@override
Future<void> delete() async {
print('\n--delete'
'\n\tsource: `$sourcePath`'
'\n');
// 1) Delete files.
const step = 1;
resetCurrentIndent();
{
print('$currentIndent$step) Deleting animation'
' by path `${current.path}`...');
if (current.existsSync()) {
current.delete(recursive: true);
}
print('$currentIndent\tSuccess delete animation'
' by path `${current.path}`.');
}
}