blob: 6fcd81c2cb0602bf97d0383f8c2d1ccb74c56ee6 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of file.src.forwarding;
/// A link that forwards all methods and properties to a delegate.
abstract class ForwardingLink extends ForwardingFileSystemEntity<Link, io.Link>
implements Link {
ForwardingLink wrap(io.Link delegate) => wrapLink(delegate);
Future<Link> create(String target, {bool recursive: false}) async =>
wrap(await delegate.create(target, recursive: recursive));
void createSync(String target, {bool recursive: false}) =>
delegate.createSync(target, recursive: recursive);
Future<Link> update(String target) async =>
wrap(await delegate.update(target));
void updateSync(String target) => delegate.updateSync(target);
Future<String> target() =>;
String targetSync() => delegate.targetSync();