delete method

  1. @override
Future<void> delete()
override

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}`.');
  }
}